PDA

View Full Version : Remove packages from deleted repository



Paerez
July 28th, 2006, 01:29 AM
I recently removed the compiz repository in order to clean out the packages before I add it and try again.

Is there a command that could list all the packages that are now no longer linked to a repository in my sources list? I want to downgrade what was upgraded, and remove what was added.

J0Sb31R
August 16th, 2006, 10:48 AM
*bump*

myha
August 22nd, 2006, 12:30 PM
hehe, same here.... Found anything out?


regards

mmcmonster
August 22nd, 2006, 02:51 PM
Not a direct answer, but why not just:

apt-get remove package-name
apt-get update
apt-get install package-name

andb
August 22nd, 2006, 03:02 PM
try gtkorphan. Its a graphic interface to the orphan command, which looks for uneeded packages.

VirtuAlex
August 22nd, 2006, 03:07 PM
Not a direct answer, but why not just:

apt-get remove package-name
apt-get update
apt-get install package-name

the problem is in figuring out what package-names are

VirtuAlex
August 22nd, 2006, 03:09 PM
try gtkorphan. Its a graphic interface to the orphan command, which looks for uneeded packages.
This also won't catch everything - some packages are not orphaned, they just upgraded to "newer" versions

Paerez
August 22nd, 2006, 06:13 PM
My problem, as VirtuAlex said, is finding out which packages to uninstall. They are not orphans because I manually installed them. Consider the package "compiz". I installed it with "apt-get install compiz", so it will not show up as an orphan. But not that the repository has been removed, there is no available version.

I was hoping to get a list of all packages that currently have no available version in the repository. I use aptitude always, so I don't have any orphaned packages.

Gathers
August 24th, 2006, 01:45 PM
Could this be what you are looking for?

apt-show-versions | grep 'No available'

berteh
September 1st, 2006, 09:01 AM
Could this be what you are looking for?

apt-show-versions | grep 'No available'

YEEES ! wonderful, thanks a thousand times, this will finally allow me to get rid of the mess in my packages after trying glx.

Paerez
September 1st, 2006, 10:11 PM
thanks! that went into my "handy commands" tomboy note for safekeeping!

raykroeker
July 28th, 2011, 04:34 AM
Another option I discovered. I re-added the repository, then used synaptic to filter packages by "Origin" which gave me the ones I wanted to remove. Then later removed the repo.