Find the answer to your Linux question:
Results 1 to 2 of 2
hi, i have a bunch of binaries in /bin that got corrupted -- grep, cpio, mount, and others. im trying to use 'up2date --force' to reinstall them but it always ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Dec 2006
    Posts
    1

    how do you force up2date to reinstall a pckg it thinks is up to date?


    hi,

    i have a bunch of binaries in /bin that got corrupted -- grep, cpio, mount, and others.

    im trying to use 'up2date --force' to reinstall them but it always prints this:

    'The following packages you requested are already updated'

    No matter what I do, up2date REFUSES to reinstall the binaries. It just keeps saying "are already updated."

    Is there a way to make up2date do a reinstall??? its driving me nuts.

    many thx

  2. #2
    Just Joined!
    Join Date
    Sep 2007
    Location
    Lafayette, IN
    Posts
    83
    The easiest way I've found is to remove the packages and then run up2date again.

    For example:

    package system-config-printer-gui-0.6.116.10-1 is already installed
    package diskdumputils-1.3.25-1 is already installed
    package system-config-network-1.3.22.0.EL.4.2-1 is already installed
    package openssh-server-3.9p1-8.RHEL4.20 is already installed
    package openssh-clients-3.9p1-8.RHEL4.20 is already installed
    package openoffice.org-i18n-1.1.5-10.6.0.1.EL4 is already installed
    package gcc-g77-3.4.6-8 is already installed
    package gcc-c++-3.4.6-8 is already installed
    So put all that stuff into a text file and remove all but the package name (or get fancy and use awk or sed or whatever to grab the package name from the file). Then get your update on!
    [root@unixlab-011 ~]# for p in `cat packages`; do rpm -e $p; done
    [root@unixlab-011 ~]# up2date -difu
    Hope this helps!


    BC

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •