[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

How does one restore the original stable linux-image after it has been removed and purged?



I am using Debian 7.5 with linux-image-3.2.0.4-amd64 (let us call it the original stable linux-image)

Suppose the following scenario takes place:

1. I upgrade the linux-image to 3.14-0.bpo.1-amd64
2. I remove the original stable linux-image using the following command which I found after googling:

dpkg --list 'linux-image-*' \
    | perl -ane 'BEGIN { $r = `uname -r` or die; chomp $r } print $F[1], "\n" if $F[0] eq "ii" && $F[1] !~ /\Q$r\E\b/' \
    | xargs -r aptitude purge -y

3. A month later I decide to have the original stable linux-image back.

Short of reinstalling the OS, is there an alternative?



Reply to: