Nux!


Home » Repos » General chat » RPM Tips ?
RPM Tips ? [message #3979] Mon, 05 March 2018 23:58 Go to next message
ryan5122 is currently offline  ryan5122
Messages: 1
Registered: March 2018
Location: Australia
Junior Member
Hello

I'm currently training in redhat 7 and i was wondering if you had any tips on setting up a repo like you have done ?, id like to be able to build my own rpms make sure they have .desktop files when installed and pull in necessary dependencies.

Any advice would be appreciated

Kind Regards

Ryan
Re: RPM Tips ? [message #3980 is a reply to message #3979] Tue, 06 March 2018 16:43 Go to previous message
nux is currently offline  nux
Messages: 1621
Registered: January 2012
Senior Member
Administrator

Hi Ryan,

Not sure where to begin. RPM building is not a small subject and it takes a while to get a decent hang of it, but it's not too complicated.

There are plenty of resources online. I don't have time to go into details, but my main tips would be:
- use mock for building, see e.g. https://blog.packagecloud.io/eng/2015/05/11/building-rpm-pac kages-with-mock/
- most software is already packaged, if not for CentOS 7, then for Fedora or other RPM based distros, use http://rpm.pbone.net to search for them
- try to maintain compatilibity and not to overwrite existing repos as this will lead to head aches, particularly do not overwrite packages in the CentOS official repos and EPEL

- as an extra tip, look perhaps at building Flatpak apps rather than RPMs, seems like the way of the future.

hth
Lucian
Previous Topic: CentOS 7 httpd24 rpm
Goto Forum:
  


Current Time: Mon Aug 20 15:53:18 BST 2018

Total time taken to generate the page: 0.00859 seconds