Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Duplicate packages with different versions  (Read 3705 times)

0 Members and 1 Guest are viewing this topic.

GuruGary

    Topic Starter


    Adviser
    Duplicate packages with different versions
    « on: August 22, 2006, 10:33:45 PM »
    I am running a server with Red Hat Enterprise Linux ES release 3 (Taroon Update 8).  I recently noticed that I have some packages with similar names, but with different versions.  Examples (from rpm -qa):

    bzip2-libs-1.0.2-11
    bzip2-libs-1.0.2-11.EL3.4

    db4-4.1.25-8
    db4-4.1.25-8.1

    gd-1.8.4-12
    gd-1.8.4-12.3.1

    mysql-3.23.58-1
    mysql-3.23.58-16.RHEL3.1

    ... and more.  Is this normal?

    I run up2date on a pretty regular basis, which may have something to do with this.  Is it best to leave them alone?  Or should I remove the older versions?  Any tips or suggestions are appreciated.

    Rob Pomeroy



      Prodigy

    • Systems Architect
    • Thanked: 124
      • Me
    • Experience: Expert
    • OS: Other
    Re: Duplicate packages with different versions
    « Reply #1 on: August 24, 2006, 01:18:09 AM »
    Are the packages of similar sizes, or are the newer ones very much smaller?  Smaller packages indicate that they are purely updates/security patches.  If the new packages are larger than the originals then they're probably complete packages, and yes, you can delete the previous packages.

    Actually, if you're seeing packages with names ending in .RPM, you can probably delete the lot of them.  If they're installed, the RPMs are no longer required, or if they are required, they can be re-downloaded.
    « Last Edit: August 24, 2006, 01:20:24 AM by robpomeroy »
    Only able to visit the forums sporadically, sorry.

    Geek & Dummy - honest news, reviews and howtos

    GuruGary

      Topic Starter


      Adviser
      Re: Duplicate packages with different versions
      « Reply #2 on: August 24, 2006, 09:56:24 AM »
      Hi, Rob.  Thanks for the info.  The questions I have are about the installed packages that I see when doing a query with rpm (the command "rpm -qa").  So they are not file names at all, but packages listed in the RPM database.  It seems like up2date should update the packages and then update the database to remove the old information.

      I did a test by removing one of the older packages (with rpm -e), and it did delete files off the system in the process.  So I don't know if I should leave it alone and hope it doesn't cause other problems, or remove them trusting that the package manager is smart enough to know what versions of which files to keep, and which versions to delete ... or maybe I need to detete all versions of duplicate packages, and then just re-install the newest versions.

      Any ideas?

      Rob Pomeroy



        Prodigy

      • Systems Architect
      • Thanked: 124
        • Me
      • Experience: Expert
      • OS: Other
      Re: Duplicate packages with different versions
      « Reply #3 on: August 24, 2006, 04:06:11 PM »
      Rule of thumb: if it works fine, don't mess with it!

      I don't know enough about the RPM database to answer your question alas - someone at the RedHat forums could.
      Only able to visit the forums sporadically, sorry.

      Geek & Dummy - honest news, reviews and howtos