Re: Any way to remove an installed package from the RPM database?

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

 



On 03/15/2016 03:26 AM, Stuart Gathman wrote:
> On 03/14/2016 08:45 PM, Jon Danniken wrote:
>> Hello list,
>>
>> I have a package which I modified from the src.rpm and installed via RPM.
>>
>> Unfortunately, when I attempt to update my Fedora system (using dnf), it
>> offers to update my modified version of the application which brings in
>> several packages which conflict on my system.
>>
>> Is there any way to remove my modified application from the RPM database
>> without uninstalling it?  Conversely, is there any way to install an RPM
>> package without having it being added to the database?
> Use  exclude= in your dnf.conf to prevent updating that package. Works
> for yum also.

Another solution is the Epoch: tag. It is used in version comparisons
even before the version. So setting the epoch to a number higher of the
Fedora package (No Epoch is treated as 0) will make all Fedora updates
"older" that your modified package. To be on the save side you could
increase the Epoch by more than one.


As already pointed out there are better solution to your problem. So
just for completeness:

You can do things in the rpmdb only using --justdb. This can be used
make rpm belief a package is installed when it is not (on disk) or that
a package is removed while still being on the disk.

But this is something you generally should not do as rpm will happily
stomp on your files on disk if it installs or updates a package sharing
some paths. Also you give up all compatibility/dependency checking.


Florian


-- 

Red Hat GmbH, http://www.de.redhat.com/, Registered seat: Grasbrunn,
Commercial register: Amtsgericht Muenchen, HRB 153243,
Managing Directors: Paul Argiry, Charles Cachera, Michael Cunningham,
Michael O'Neill
_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxxxxx
http://lists.rpm.org/mailman/listinfo/rpm-list



[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux