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

Re: Finding and removing backports



Masatran (Deepak), R. wrote:
apt-show-versions -b | grep sarge-backports | cut -d ' ' -f 1 | awk -F/ '{print $1;}' | grep -v grepmap | grep -v wine | xargs --replace="{}" apt-get install {}/sarge -y

Could anyone confirm if this is correct?

   $ apt-show-versions -b | grep sarge-backports
   libdps1/sarge-backports
   oooqs-kde/sarge-backports

Seems not; I definitely have more backports installed than that! e.g.,

   $ apt-cache policy gimp
   gimp:
     Installed: 2.2.10-1bpo1
     Candidate: 2.2.10-1bpo1
     Version Table:
        2.2.10-2 0
           100 http://http.us.debian.org unstable/main Packages
    *** 2.2.10-1bpo1 0
           125 http://www.backports.org sarge-backports/main Packages
           100 /var/lib/dpkg/status
        2.2.6-1 0
           500 http://http.us.debian.org stable/main Packages

   $ apt-show-versions -b gimp
   gimp/unstable

So, it looks like some backports show up as /unstable/ here. The following command seems to work, though it catches locally-installed packages too (and anything else not from stable):

   apt-show-versions -b | grep -v '\<stable$' | cut -d/ -f1



Reply to: