Permanent Fave: apt-show-versions -u (Was: help in purging old packages)

2015-02-10 Thread Cindy-Sue Causey
On 1/10/15, Bob Proulx b...@proulx.com wrote:

 If you are an apt-get command line person (like I am) instead of the
 aptitude methods already mentioned then you can use apt-show-versions
 to show you what is installed but no longer has an install candidate.

   apt-show-versions | grep -v uptodate

 Packages that match what are in the archive say uptodate.  The grep
 -v removes those lines.  What are left are all of the other
 interesting packages.  I will include a list from a system of mine for
 an example.  (And I guess I have some cleaning to do on my system.)

 With the list in hand you can then use judgement and purge them off.



Just finished running this one AGAIN, and decided to give it its 15
seconds of subject line fame for new users to see. Bob suggested this
to another Debian-User member not too long ago. It IMMEDIATELY became
a permanent part of my own Top 5 programs.

One easy daily to-do list check off for me these days is:

$ apt-get update
$ apt-show-versions -u

Example output from that run a few minutes ago under Sid is:

dbus:amd64/sid 1.8.14-2 upgradeable to 1.8.16-1
dbus-x11:amd64/sid 1.8.14-2 upgradeable to 1.8.16-1
libdbus-1-3:amd64/sid 1.8.14-2 upgradeable to 1.8.16-1
libldap-2.4-2:amd64/sid 2.4.40-3 upgradeable to 2.4.40-4
libmp3lame0:amd64/sid 3.99.5+repack1-5 upgradeable to 3.99.5+repack1-6

With each new output, I then hand pick what updates to control what
gets updated when. The necessary reason for that is because I'm
running at the speed of dialup. You have to control what happens
when.. :)

Thanks to apt-show-versions, my laptop now runs consistently with:

0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

k/t to Bob one more time for that great lead. It might have been
years, if ever, that I stumbled upon it otherwise. It's been a
*perfect*, very *_cognitively friendly_* tool for keeping my computer
100% up to date under my particular set of computing circumstances

Hope highlighting this helps someone else near as much as it has
helped me.. Happy Debian'ing out there.. :)

Cindy :)

-- 
Cindy-Sue Causey
Talking Rock, Pickens County, Georgia, USA

* runs with plastic sporks *


-- Forwarded message --
From: Bob Proulx b...@proulx.com
Date: Sat, 10 Jan 2015 15:40:14 -0700
Subject: Re: help in purging old packages
To: debian-user@lists.debian.org

Comer Duncan wrote:
 I have a situation in which I am running wheezy 7.7 and for various reasons
 now want to purge all packages which for some reason are still present from
 etch, lenny, and squeeze.  What I would like to know is how can I purge all
 such packages using dpkg?  I can not seem to find how to select just those
 old packages for purging. Can those who know about this please help?

If you are an apt-get command line person (like I am) instead of the
aptitude methods already mentioned then you can use apt-show-versions
to show you what is installed but no longer has an install candidate.

  apt-show-versions | grep -v uptodate

Packages that match what are in the archive say uptodate.  The grep
-v removes those lines.  What are left are all of the other
interesting packages.  I will include a list from a system of mine for
an example.  (And I guess I have some cleaning to do on my system.)

With the list in hand you can then use judgement and purge them off.

Bob

Example:

$ apt-show-versions | grep -v -e uptodate -e bpo7
ddrescue 1.14-1 installed: No available version in archive
doc-linux-text 2008.08-1 installed: No available version in archive
foomatic-filters-ppds 1:4.0.4-3 installed: No available version in archive
kerneloops 0.12+git20090217-1 installed: No available version in archive
libarchive1 2.8.4.forreal-1+squeeze2 installed: No available version in archive
libdb4.8 4.8.30-2 installed: No available version in archive
liblzma2 5.0.0-2 installed: No available version in archive
libmozjs10d 10.0.12esr-1 installed: No available version in archive
libnotify1 0.5.0-2 installed: No available version in archive
libssl0.9.8 0.9.8o-4squeeze14 installed: No available version in archive
linux-image-2.6.32-5-686 2.6.32-48squeeze3 installed: No available
version in archive
powernowd 1.00-1.1 installed: No available version in archive
python2.5 2.5.5-11 installed: No available version in archive
python2.5-minimal 2.5.5-11 installed: No available version in archive
python3-dvdvideo 0.1 installed: No available version in archive
python3.1 3.1.3-1 installed: No available version in archive
python3.1-minimal 3.1.3-1 installed: No available version in archive
sun-java6-bin 6.26-0squeeze1 installed: No available version in archive
sun-java6-jre 6.26-0squeeze1 installed: No available version in archive


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/CAO1P-kDi6GMU1uhwtNZFkheq2zNTaDL0=mgekq1d-sjdd6m...@mail.gmail.com



Re: Permanent Fave: apt-show-versions -u (Was: help in purging old packages)

2015-02-10 Thread songbird
Cindy-Sue Causey wrote:
...
 One easy daily to-do list check off for me these days is:

 $ apt-get update
 $ apt-show-versions -u

  this list includes things you've held or pinned.

  since you are on dialup have you tried debdelta
(and explicitly debdelta-upgrade)?  it helps at
times.  even now that i have a faster connection
i still use it when i see the MB of updates is
more than a few.


  songbird


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/scupqb-5n3@id-306963.user.uni-berlin.de



Re: help in purging old packages

2015-01-14 Thread Andrei POPESCU
On Vi, 09 ian 15, 16:54:39, Darac Marjal wrote:
 On Fri, Jan 09, 2015 at 11:23:17AM -0500, Comer Duncan wrote:
 Hi,
  
 I have a situation in which I am running wheezy 7.7 and for various
 reasons now want to purge all packages which for some reason are still
 present from etch, lenny, and squeeze.  What I would like to know is how
 can I purge all such packages using dpkg?  I can not seem to find how to
 select just those old packages for purging. Can those who know about this
 please help?
 
aptitude search '?narrow(?installed,?not(?archive(^stable$)))'

If you are satisfied with the result replace 'search' with 'purge'.
 
 If you want to purge all packages which are installed and installable,
 but where the version is the same as in an earlier release... that's
 probably going to need some scripting :)

I must be misunderstanding something, but why would anyone want to 
remove those?

Kind regards,
Andrei
-- 
http://wiki.debian.org/FAQsFromDebianUser
Offtopic discussions among Debian users and developers:
http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic
http://nuvreauspam.ro/gpg-transition.txt


signature.asc
Description: Digital signature


Re: help in purging old packages

2015-01-11 Thread lina
I used to

:/usr/lib$ ls -1 | sort

and used eyes to pick up these packages to purge.


On Sat, Jan 10, 2015 at 12:23 AM, Comer Duncan comer.dun...@gmail.com wrote:
 Hi,

 I have a situation in which I am running wheezy 7.7 and for various reasons
 now want to purge all packages which for some reason are still present from
 etch, lenny, and squeeze.  What I would like to know is how can I purge all
 such packages using dpkg?  I can not seem to find how to select just those
 old packages for purging. Can those who know about this please help?

 Thanks.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/CAG9cJmmuOQnwpTqgqB=soYm4-yfvEe=wsrk7iipz75rrtpy...@mail.gmail.com



Re: help in purging old packages

2015-01-10 Thread Bob Proulx
Comer Duncan wrote:
 I have a situation in which I am running wheezy 7.7 and for various reasons
 now want to purge all packages which for some reason are still present from
 etch, lenny, and squeeze.  What I would like to know is how can I purge all
 such packages using dpkg?  I can not seem to find how to select just those
 old packages for purging. Can those who know about this please help?

If you are an apt-get command line person (like I am) instead of the
aptitude methods already mentioned then you can use apt-show-versions
to show you what is installed but no longer has an install candidate.

  apt-show-versions | grep -v uptodate

Packages that match what are in the archive say uptodate.  The grep
-v removes those lines.  What are left are all of the other
interesting packages.  I will include a list from a system of mine for
an example.  (And I guess I have some cleaning to do on my system.)

With the list in hand you can then use judgement and purge them off.

Bob

Example:

$ apt-show-versions | grep -v -e uptodate -e bpo7
ddrescue 1.14-1 installed: No available version in archive
doc-linux-text 2008.08-1 installed: No available version in archive
foomatic-filters-ppds 1:4.0.4-3 installed: No available version in archive
kerneloops 0.12+git20090217-1 installed: No available version in archive
libarchive1 2.8.4.forreal-1+squeeze2 installed: No available version in archive
libdb4.8 4.8.30-2 installed: No available version in archive
liblzma2 5.0.0-2 installed: No available version in archive
libmozjs10d 10.0.12esr-1 installed: No available version in archive
libnotify1 0.5.0-2 installed: No available version in archive
libssl0.9.8 0.9.8o-4squeeze14 installed: No available version in archive
linux-image-2.6.32-5-686 2.6.32-48squeeze3 installed: No available version in 
archive
powernowd 1.00-1.1 installed: No available version in archive
python2.5 2.5.5-11 installed: No available version in archive
python2.5-minimal 2.5.5-11 installed: No available version in archive
python3-dvdvideo 0.1 installed: No available version in archive
python3.1 3.1.3-1 installed: No available version in archive
python3.1-minimal 3.1.3-1 installed: No available version in archive
sun-java6-bin 6.26-0squeeze1 installed: No available version in archive
sun-java6-jre 6.26-0squeeze1 installed: No available version in archive


signature.asc
Description: Digital signature


Re: help in purging old packages

2015-01-10 Thread Cindy-Sue Causey
On 1/10/15, Bob Proulx b...@proulx.com wrote:

 If you are an apt-get command line person (like I am) instead of the
 aptitude methods already mentioned then you can use apt-show-versions
 to show you what is installed but no longer has an install candidate.

   apt-show-versions | grep -v uptodate

 Packages that match what are in the archive say uptodate.  The grep
 -v removes those lines.  What are left are all of the other
 interesting packages.  I will include a list from a system of mine for
 an example.  (And I guess I have some cleaning to do on my system.)

 With the list in hand you can then use judgement and purge them off.


* I like it! *

When I first finally bought into the whole package deal (versus
rolling your own via compiling), I was using graphical interface. You
could visually flip through then toggle (via clicking checkboxes) what
packages to upgrade. Moving (permanently) to command line to perform
those actions, I lost that ability and just never pursued whether it
even existed in that [realm]. All you'd see there was yadda number of
packages need upgraded without knowing what all they were.

So I just installed your suggested apt-show-versions then ran the
command you (also) suggested. Zip. Blank. Zero. Yay!

Then I got to thinking. Been seeing things about things being frozen
and other about mirrors playing catchup *TODAY* so I ran apt-get
update then ran apt-show-versions again.

40. All presented in the format of:

apt/wheezy upgradeable from 0.9.7.9+deb7u6 to 0.9.7.9+deb7u7

And as a text list that I can see as a whole to be able to pick
through. That matters tremendously because this is all being done on
dialup. You only get to do basically one notable action at a time so
you have to orchestrate accordingly to get the most bang out of time
spent in front of the screen.. This is a PERFECT tool for that. :)

Cindy
-- 
Cindy-Sue Causey
Talking Rock, Pickens County, Georgia, USA

* runs with plastic sporks *


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/cao1p-kcszomwbkhu77cl5omwk8ezgwu3uysue7gzmpvxvy7...@mail.gmail.com



Re: help in purging old packages

2015-01-09 Thread Darac Marjal
On Fri, Jan 09, 2015 at 11:23:17AM -0500, Comer Duncan wrote:
Hi,
 
I have a situation in which I am running wheezy 7.7 and for various
reasons now want to purge all packages which for some reason are still
present from etch, lenny, and squeeze.  What I would like to know is how
can I purge all such packages using dpkg?  I can not seem to find how to
select just those old packages for purging. Can those who know about this
please help?

If you want to purge all packages which have been uninstalled but for
which configuration remains: aptitude purge ?config-files

If you want to purge all packages which are installed but which no
longer have a candidate in debian: aptitude purge ?obsolete

If you want to purge all packages which are installed and installable,
but where the version is the same as in an earlier release... that's
probably going to need some scripting :)

 
Thanks.


signature.asc
Description: Digital signature


Re: help in purging old packages

2015-01-09 Thread Hans

 If you want to purge all packages which have been uninstalled but for
 which configuration remains: aptitude purge ?config-files
 
 If you want to purge all packages which are installed but which no
 longer have a candidate in debian: aptitude purge ?obsolete
 
 If you want to purge all packages which are installed and installable,
 but where the version is the same as in an earlier release... that's
 probably going to need some scripting :)
 

Also a good way:
Install package deborphan, then run
aptitude purge `deborphan --guess-all`.

Be carefull, what it wants do deinstall. However, I am using it regularly and 
it did not deinstall accidently a package, I did not want to be deinstalled.
Ok, might be, I was lucky. If it does, I would just reinstall it.

I suggest, just to take a look and then decide for yourself.

Best regards

Hans 


signature.asc
Description: This is a digitally signed message part.


help in purging old packages

2015-01-09 Thread Comer Duncan
Hi,

I have a situation in which I am running wheezy 7.7 and for various reasons
now want to purge all packages which for some reason are still present from
etch, lenny, and squeeze.  What I would like to know is how can I purge all
such packages using dpkg?  I can not seem to find how to select just those
old packages for purging. Can those who know about this please help?

Thanks.


Re: help in purging old packages

2015-01-09 Thread Gary Dale

On 09/01/15 11:23 AM, Comer Duncan wrote:

Hi,

I have a situation in which I am running wheezy 7.7 and for various 
reasons now want to purge all packages which for some reason are still 
present from etch, lenny, and squeeze.  What I would like to know is 
how can I purge all such packages using dpkg?  I can not seem to find 
how to select just those old packages for purging. Can those who know 
about this please help?


Thanks.


Check out aptitude autoclean and aptitude clean. Or you can install 
deborphan.



--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: https://lists.debian.org/54b04b87.1020...@torfree.net