Re: dnf install custom rpm - dnf upgrade

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

 



On 12. 10. 2015 at 12:04:00, arnaud gaboury wrote:
> I built my own .rpm's for a meta package. These packages are only a
> modification of an existing Fedora package. Before I installed my own
> packages, I first removed the original version from Fedora.
> 
> Thus now $ dnf list installed return correctly:
> Software     version-MyBuild.fc22.1
> 
> When doing a system upgrade, dnf want to install the original Fedora
> version: Software-version.fc22.1

I guess the official Fedora package was upgraded in remote repos and was 
therefore selected as an upgrade of your package. This happens if both 
packages have the same name.

> Is there a way to change somewhere this behavior? Why dnf want to
> upgrade a package which is not installed? I guess one solution would
> be to give a different name for my own tweak rpm, but I thought
> changing only versisoning would be enough. Another solution would be
> to ignore these packages. Is there a clean and recommended way to
> avoid dnf to upgrade these customs rpm's ?

You basically have two options to do what you need:

1) Rename the package [1]
2) Bump the epoch so that the EVR of your custom package is always higher than 
the official one

However, both of these options have some potential implications for stability 
of your system and you should know what are you doing before choosing one of 
them.

[1] 
http://fedoraproject.org/wiki/Packaging:Guidelines#Renaming.2FReplacing_Existing_Packages

Jan
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org



[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