Re: tip: automated way to delete duplicate rpms

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



oldman wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jim Cornette wrote:

The safest way to remove the older package remnants is to download the
newer packages and run
'rpm -Uvh --replacepkgs --replacefiles packagename(s).arch.rpm'
because of the reasons that you pointed to. If the older package has
files that are the same name as used in the newer package, erasure of
the files is probable when you erase the older version of the rpm.

Running 'rpm -Uvh --justdb --nodeps packagename(s).arch.rpm' will safely
only remove the database entry but will leave the documentation (has a
version number) and any files that are not contained within the new
package lingering on your system. But for most occasions that I seen,
each version of an rpm usually has files placed in the same location and
will differ only in date and other file characteristics. That is why
when you do an 'rpm -qV packagename' on the older package you usually
see a lot of output with file details being different and when checking
the later version you get no output because all is well with the newer
version rpm.

I think so anyway! :-)
Jim

	Thanks Jim
	When this happened previously, I found out when some new program being
updated would not update the dependency or the program due to the older
package. removing the older package from the db allowed the upgrade to
progress.
	I might have an extra file or two running around on my machine, but it
beats the hell out of not having a file or two! :-)

I usually do the rpm -e --nodep --justdb oldpackage-version myself. I only recently realized that there was most likely doc files left behind. Previously I assumed that all files would be of the new version and the old files would not be present.

rpm -Uvh --replacefiles --replacepkgs latestpackage

is the best bet though. You are right that having lingering documentation from the earlier version is better than removing needed files which are most likely from the latest version that was installed.

Jim

--
When in doubt, follow your heart.

[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux