I using Debian (Wheezy) with the 3.2.0-4 amd64 kernel version and want to upgrade my kernel to newest version, like 3.13.3 stable, but I have no internet connection to my Debian OS. I have installed both of usb-modeswitch and usb-modeswitch-data packages but Debian doesn't detect my 3g-modem-usb dongle.I've downloaded the 3.13.3 tar.xz kernel source from kernel.org. How can I compile and upgrade from 3.2 to 3.13.3 without an internet connection?
How do I upgrade the Debian Wheezy kernel offline?
debian;kernel
The easy way: backportsI assume you need the new kernel to get your modem to work. If you can live with 3.12 instead of 3.13, at least for now, then instead of recompiling the kernel from source, you can just use Debian Backports. [update: Now backports is up to 3.14]You can manually grab the package from packages.debian.org (update: now 3.14) on a computer with an Internet connection. Also grab initramfs-tools (there will be a link on the page). Put both on a USB stick, and install with dpkg -i.You can also look at the linux-image-amd64 package, or the similar one for your architecture, to find out the most-recent version.Once you have an Internet connection on the computer, the backports webpage has full instructions on how to set it up so you get updates, but in short:Edit /etc/apt/sources.list and add deb http://YOURMIRROR.debian.org/debian wheezy-backports mainTo install a package from backports, use -t wheezy-backports, e.g., aptitude -t wheezy-backports install linux-image-amd64 The hard way: upstream kernel sourcesNote that you'll lose Debian patches this way, unless you hand-apply them.Configure the kernel as in Configuring, compiling and installing a custom Linux kernel but do not install it. (You could also swipe the Debian configuration file, but beware it builds almost everything, so will take a very long time to compile). Instead, run make deb-pkg. This will generate several Debian packages. You'll want to install the linux-image- and possibly linux-headers- and linux-firmware-image- ones. You don't need to install the (absolutely huge) linux-image-*-dbg package.