Re: rpm -e question

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

 



On 26 August 2010 14:11, James Mckenzie <jjmckenzie51@xxxxxxxxxxxxx> wrote:
> Aaron Konstam <akonstam@xxxxxxxxxxxxx> wrote:
>
>>Sent: Aug 26, 2010 1:42 PM
>>To: Community support for Fedora users <users@xxxxxxxxxxxxxxxxxxxxxxx>
>>Subject: Re: rpm -e question
>>
>>On Thu, 2010-08-26 at 10:48 -0700, JD wrote:
>>> Running rpm -e <pkgname>
>>> does not delete the binaries and other files that
>>> were installed by the package; and I see no option
>>> to rpm in the man page to remove the package's files.
>>> So far I have had to remove them manually after I
>>> remove the package. But that is a hit and miss operaton
>>> because I cannot always remember to do
>>>
>>> rpm -ql --provides <pkgname>
>>>
>>How about:
>>yum erase <pkgname>
> [ka-snip]
>
> That only works if if the package was installed using yum or yum history was manually updated to include the package.
>

I believe that comment is incorrect. Yum won't know which repo the rpm
came from but it does see that it is installed and can remove it.

> A good example of this NOT happening is if you use the RPMFusion packages per their instructions.
>
> Thus using rpm -e should not affect yum in this case.
>
> However, using rpm -q or rpm -ql followed by rpm -e to remove a package installed by yum will leave a dangling entry in yum history.
>

However this comment looks accurate to me. To avoid this inconsistency
between the rpm and yum databases, it is always recommended to use
yum. So to install individual rpms with yum, one can use,

$ yum localinstall /path/to/rpm

> James McKenzie
>

HTH

-- 
Suvayu

Open source is the future. It sets us free.
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines

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

  Powered by Linux