Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

How to delete obsolete packages?

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
User avatar
cola
Posts: 288
Joined: 2009-03-09 21:28

How to delete obsolete packages?

#1 Post by cola »

after aptitude udpate i got:

Code: Select all

Current status: 542 updates [+470], 28356 new [+1469].
There are 18 newly obsolete packages: devicekit-disks, gcj-4.3-base, libcelt0, libdirectfb-1.2-0, libgcj9-0, libgcj9-jar,
                                      libgraphviz4, liblzma1, libmagickcore2, libmagickcore2-extra, libmagickwand2,
                                      libmenu-cache0, libntfs-3g54, libx264-79, libxmmsclient5, libxxf86misc1, w32codecs,
                                      xserver-xorg-video-v4l
How would i delete/remove obsolete packages?
And why are they obsolete?

User avatar
craigevil
Posts: 5391
Joined: 2006-09-17 03:17
Location: heaven
Has thanked: 28 times
Been thanked: 39 times

Re: How to delete obsolete packages?

#2 Post by craigevil »

They are obsolete because 1) they are not in any repo that is in your sources.list or 2) they are packages you installed locally using dpkg that again are not in the repos in your sources.list.

apt-get autoremove or aptitude purge ~c should remove them.
Raspberry PI 400 Distro: Raspberry Pi OS Base: Debian Sid Kernel: 5.15.69-v8+ aarch64 DE: MATE Ram 4GB
Debian - "If you can't apt install something, it isn't useful or doesn't exist"
My Giant Sources.list

User avatar
debil
Posts: 1336
Joined: 2008-05-11 08:55
Location: Mazes of Menace, surrounded by brown puddings

Re: How to delete obsolete packages?

#3 Post by debil »

craigevil wrote:aptitude purge ~c should remove them.
This should be

Code: Select all

aptitude purge ~o
Q: Why is the Eunux kernel so bloated?
A: It was made in the image of its founder.

elric
Posts: 8
Joined: 2010-06-04 10:47

Re: How to delete obsolete packages?

#4 Post by elric »

Beware, aptitude treats as obsolete also packages installed from repos not enabled at the moment (imagine debian-multimedia), as well as packages locally installed.

aptitude purge ~o will delete ALL those packages.

Post Reply