Debian has this nifty feature of apt-get which is the option to 'autoclean'
It has two purposes, first it removes files from the local repository which can no longer be downloaded and are useless. Second it removes packages that used to depend on a package which no longer exists.
Example:
I install claws-mail which depends on (among other things) libetpan11.
Then I decide I don't like claws-mail and remove the package claws-mail.
The next time I run autoclean (presuming that no other installed package depends on libetpan11) it will remove the package libetpan11 since it it no longer required by the system.
Is there any similar functionality with yum/rpm?
Thanks, Rohan Sheth
Rohan Sheth wrote:
Debian has this nifty feature of apt-get which is the option to 'autoclean'
It has two purposes, first it removes files from the local repository which can no longer be downloaded and are useless. Second it removes packages that used to depend on a package which no longer exists.
Example:
I install claws-mail which depends on (among other things) libetpan11.
Then I decide I don't like claws-mail and remove the package claws-mail.
The next time I run autoclean (presuming that no other installed package depends on libetpan11) it will remove the package libetpan11 since it it no longer required by the system.
Is there any similar functionality with yum/rpm?
Other than what Todd has already said, note that apt-rpm is available in Fedora. If you need it
# yum install apt
Rahul
Rahul Sundaram <sundaram <at> fedoraproject.org> writes:
Other than what Todd has already said, note that apt-rpm is available in Fedora. If you need it
# yum install apt
But note that autoclean in apt-rpm (at least in the version currently in Fedora 7) only cleans the apt cache (removes downloaded files no longer in the repo), it doesn't remove any installed packages.
Kevin Kofler
The yum-utils options mentioned by Todd worked perfectly. Thanks!
--Rohan
On Sat, 20 Oct 2007 17:49:18 +0000 (UTC) Kevin Kofler kevin.kofler@chello.at wrote:
Rahul Sundaram <sundaram <at> fedoraproject.org> writes:
Other than what Todd has already said, note that apt-rpm is available in Fedora. If you need it
# yum install apt
But note that autoclean in apt-rpm (at least in the version currently in Fedora 7) only cleans the apt cache (removes downloaded files no longer in the repo), it doesn't remove any installed packages.
Kevin Kofler
On Sat, 20 Oct 2007, Kevin Kofler wrote:
Rahul Sundaram <sundaram <at> fedoraproject.org> writes:
Other than what Todd has already said, note that apt-rpm is available in Fedora. If you need it
# yum install apt
But note that autoclean in apt-rpm (at least in the version currently in Fedora 7) only cleans the apt cache (removes downloaded files no longer in the repo), it doesn't remove any installed packages.
Debian apt "autoclean" doesn't remove any installed packages either. It might have orphan removal implemented one way or the other but "autoclean" is all about cleaning things in the download cache.
- Panu -
Rohan Sheth wrote:
Debian has this nifty feature of apt-get which is the option to 'autoclean'
It has two purposes, first it removes files from the local repository which can no longer be downloaded and are useless. Second it removes packages that used to depend on a package which no longer exists.
Example:
I install claws-mail which depends on (among other things) libetpan11.
Then I decide I don't like claws-mail and remove the package claws-mail.
The next time I run autoclean (presuming that no other installed package depends on libetpan11) it will remove the package libetpan11 since it it no longer required by the system.
Is there any similar functionality with yum/rpm?
The package-cleanup script from yum-utils can do part of this. Using the --leaves option gets you a list of packages that are not required by any other packages. The --orphans option lists packages that are not available from any configured repos. You would have to feed these lists to yum remove to uninstall packages you wanted to remove, but that may work for you.