SCIENTIFIC-LINUX-USERS Archives

July 2007

SCIENTIFIC-LINUX-USERS@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
John Hearns <[log in to unmask]>
Reply To:
John Hearns <[log in to unmask]>
Date:
Fri, 13 Jul 2007 09:40:42 +0100
Content-Type:
text/plain
Parts/Attachments:
text/plain (30 lines)
vivek chal wrote:
> hi all!
> 
> i am not able to uninstall a rpm package in SL3.0.6 .i have used commands
> rpm -e packagename
> rpm -evv packagename
> rpm -e --nodeps packagename
> rpm -e --noscripts packagename
> 
> i think i have deleted the package directory by mistake .now what should 
> i do to remove the package completely,so that i can reinstall a  fresh copy

Please give us the error messages - you might be able to rebuild your 
RPM database for instance.

However, if all you want to do is "reinstall a fresh copy" this is easy:

rpm --install --replace-pkgs packagename.rpm

This will do exactly what you want - replace the existing RPM with the 
files from packagename.rpm and also run the post install script.

-- 
      John Hearns
      Senior HPC Engineer
      Streamline Computing,
      The Innovation Centre, Warwick Technology Park,
      Gallows Hill, Warwick CV34 6UW
      Office: 01926 623130 Mobile: 07841 231235

ATOM RSS1 RSS2