2016-02-10 07:09:38 |
Jarno Suni |
description |
The script may purge some of these packages
$ dpkg-query -W -f='${Package}\n' 'linux-headers-*' | grep -E ^linux-headers-[[:digit:].]+-[^-]+-.*$
but not these packages
$ dpkg-query -W -f='${Package}\n' 'linux-headers-*' | grep -E ^linux-headers-[[:digit:].]+-[^-]+$ |
The script may purge some of these packages
$ dpkg-query -W -f='${Package}\n' 'linux-headers-*' | grep -E ^linux-headers-[[:digit:].]+-[^-]+-.*$
but not these packages
$ dpkg-query -W -f='${Package}\n' 'linux-headers-*' | grep -E ^linux-headers-[[:digit:].]+-[^-]+$
though the latter could be purged later by
$ sudo apt-get autoremove --purge
if they are marked as automatically installed packages, and if no installed package depends on them. |
|
2016-11-01 19:05:18 |
Jarno Suni |
description |
The script may purge some of these packages
$ dpkg-query -W -f='${Package}\n' 'linux-headers-*' | grep -E ^linux-headers-[[:digit:].]+-[^-]+-.*$
but not these packages
$ dpkg-query -W -f='${Package}\n' 'linux-headers-*' | grep -E ^linux-headers-[[:digit:].]+-[^-]+$
though the latter could be purged later by
$ sudo apt-get autoremove --purge
if they are marked as automatically installed packages, and if no installed package depends on them. |
The script may purge some of these packages
$ dpkg-query -W -f='${Package}\n' 'linux-headers-*' | grep -E ^linux-headers-[[:digit:].]+-[^-]+-.*$
but not these packages
$ dpkg-query -W -f='${Package}\n' 'linux-headers-*' | grep -E ^linux-headers-[[:digit:].]+-[^-]+$ |
|