[CentOS] RPM help

Jonathan Billings billings at negate.org
Mon Aug 8 12:19:10 UTC 2016


On Mon, Aug 08, 2016 at 07:57:56AM -0400, TE Dukes wrote:
> How can I do an uninstall/re-install without hosing more stuff up?
> I have found some examples, --nodeps, --replacepkgs and -replacefiles

Don't use 'rpm'.  Do a 'yum reinstall packagename1 packagename2' to
have yum download and reinstall the packages.  Doing it with rpm is
possible but you need to be VERY careful and yum does all of it for
you. 

> Also, what is the rpm command that will tell me all packages named clam*.
> Haven't used it in a while and have forgotten. I tried rpm -q "clam*" but
> that didn't work.

rpm -qa clam\*

or

rpm -qa 'clam*'

(you want to avoid shell expansions)

-- 
Jonathan Billings <billings at negate.org>



More information about the CentOS mailing list