Siduction Forum

Siduction Forum => Software - Support => Topic started by: Mte90 on 2022/03/08, 18:04:29

Title: /var/lib/dpkg/status include missing packages
Post by: Mte90 on 2022/03/08, 18:04:29
I am trying to clean up but seems that this files include packages that are not available in the debian repositories (sid) that I am using, like packages not available anymore on sid.

Do you have some suggestions to regenerate this file?
Title: Re: /var/lib/dpkg/status include missing packages
Post by: Geier0815 on 2022/03/08, 22:12:27
Do you want to get rid of these packages where you don't have a source for? Then install apt-show-versions and give
Code: [Select]
apt-show-versions | grep "No available" | awk '{print $1}' > list-to-delete.txt and then
Code: [Select]
apt purge `cat list-to-delete.txt`This will delete all packages which are no longer found in your repos. Keep an eye on the list before purge the packages, maybe there are packaes which you want to keep. If so, delete them out of the list.
Title: Re: /var/lib/dpkg/status include missing packages
Post by: Mte90 on 2022/03/09, 12:16:07
That command kind of works, the issue is that list also package that I installed manually that doesn't have a repository but I can do a manually check for that.

Just to let you know seems that I have over 1000 packages that can be removed like qt4, gnash and older kde packages...