is there any way to view obsolete package on the aptitude cli

Asked by Shirish Agarwal

Hi all,
 I looked at the man page of aptitude but couldn't find a way , a switch or something through which I can find obsolete packages on the system. I know there are others such as deborphan, cruft and one more which does the same thing but do know aptitude also gives similar functionality through the aptitude GUI . I'm looking if there is a CLI way of doing the same, if somebody knows it would be nice.

There is possibility its there but not documented in the manual. Looking forward to correct, add, suggest solutions on the same.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu aptitude Edit question
Assignee:
No assignee Edit question
Solved by:
Shirish Agarwal
Solved:
Last query:
Last reply:
Revision history for this message
Tony Mugan (tmugan) said :
#1

Apparently aptitude will remove orphaned packages when you remove a package.
apt-get does not and will therefore require a periodic
sudo apt-get autoremove

Check this...
http://www.go2linux.org/apt-get_and_aptitude

deborphan will also clean up for you as you point out.
So if you use aptitude from now on, you can keep the orphans to a minimum.

Revision history for this message
Shirish Agarwal (shirishag75) said :
#2

Hi Tony,
 This is actually the command which tells me

shirish@Mugglewille:~$ aptitude search "~o" |more
i apt-spy - writes a sources.list file based on bandwi
i beforelight - X client - beforelight
i bitchx - Advanced Internet Relay Chat client
i bitmap - X client - bitmap
i cogito - version control system
i gnome-keyring-manager - keyring management program for the GNOME d
i gtkhtml3.14 - HTML rendering/editing library - bonobo co
i hal-device-manager - Hardware Abstraction Layer user interface
i hamster-applet - Time tracking applet for GNOME desktop
i icedtea-java7-bin - Java runtime based on OpenJDK
i icedtea-java7-doc - Icedtea Development Kit (JDK) documentatio
i icedtea-java7-plugin - Java plugin based on IcedTea and gcjwebplu
i ico - X client - ico
i libbeagle0 - library for accessing beagle using C
i libbind9-30 - BIND9 Shared Library used by BIND
i libboost-regex1.34.0 - regular expression library for C++
i libbrlapi1 - braille display access via BRLTTY - shared
i libcamel1.2-10 - The Evolution MIME message handling librar
i libcdio6 - library to read and control CD-ROM
i libdevmapper1.02 - The Linux Kernel Device Mapper userspace l
i libdirectfb-0.9-25 - direct frame buffer graphics - shared libr
i libdvdcss2 - Library for accessing DVDs like block devi
i libflac7 - Free Lossless Audio Codec - runtime C libr
i libgpod1 - a library to read and write songs and artw
i libicu36 - International Components for Unicode
i libisccfg30 - Config File Handling Library used by BIND
i libiw28 - Wireless tools - library
i libjasper-1.701-1 - The JasPer JPEG-2000 runtime library
i liblaunchpad-integration0 - library for launchpad integration
i libldap2 - OpenLDAP libraries
i libmagick9 - Image manipulation library
i libneon25 - An HTTP and WebDAV client library
i liboobs-1-3 - GObject based interface to system-tools-ba
i libopencdk8 - Open Crypto Development Kit (OpenCDK) (run
i libpisync0 - synchronization library for PalmOS devices
i libpoppler-glib1 - PDF rendering library (GLib-based shared l
i libpoppler1 - PDF rendering library

--More--