PDA

View Full Version : YUM update with a home-grown package



dhclose
23rd July 2013, 12:43 AM
I'm trying to create a local package which is almost identical to a standard one. Of course, it has a minor local modification, but that is not appropriate for general release.

So, I've extracted the standard package, created a file archive, created a spec file, and run 'rpmbuild -bb' against those. This works: it creates a new RPM file which appears to be identical to the standard one except for my change.

But YUM won't install it, claiming that my package "does not update installed package". This is likely due to the version/release numbers I've used but I can't see what's wrong with them. I've tried several likely values:


Old version: 2.6.38-1.fc17
New version: 2.6.38-1.mycompany.fc17
rpmdev-vercmp 2.6.38-1.fc17 2.6.38-1.mycompany.fc17
0:2.6.38-1.mycompany.fc17 is newer

Loaded plugins: langpacks, presto, refresh-packagekit
Adding en_US to language list
Setting up Install Process
Examining package-2.6.38-1.mycompany.fc17.x86_64.rpm: package-2.6.38-1.mycompany.fc17.x86_64
package-2.6.38-1.mycompany.fc17.x86_64.rpm: does not update installed package.
Error: Nothing to do
---------------------------------------------
Old version: 2.6.38-1.fc17
New version: 2.6.38.1-mycompany.fc17
rpmdev-vercmp 2.6.38-1.fc17 2.6.38.1-mycompany.fc17
0:2.6.38.1-mycompany.fc17 is newer

Loaded plugins: langpacks, presto, refresh-packagekit
Adding en_US to language list
Setting up Install Process
Examining package-2.6.38.1-mycompany.fc17.x86_64.rpm: package-2.6.38.1-mycompany.fc17.x86_64
package-2.6.38.1-mycompany.fc17.x86_64.rpm: does not update installed package.
Error: Nothing to do
---------------------------------------------
Old version: 2.6.38-1.fc17
New version: 2.6.38-2.fc17
rpmdev-vercmp 2.6.38-1.fc17 2.6.38-2.fc17
0:2.6.38-2.fc17 is newer

Loaded plugins: langpacks, presto, refresh-packagekit
Adding en_US to language list
Setting up Install Process
Examining package-2.6.38-2.fc17.x86_64.rpm: package-2.6.38-2.fc17.x86_64
package-2.6.38-2.fc17.x86_64.rpm: does not update installed package.
Error: Nothing to do
---------------------------------------------
Old version: 2.6.38-1.fc17
New version: 2.6.38-2.mycompany.fc17
rpmdev-vercmp 2.6.38-1.fc17 2.6.38-2.mycompany.fc17
0:2.6.38-2.mycompany.fc17 is newer

Loaded plugins: langpacks, presto, refresh-packagekit
Adding en_US to language list
Setting up Install Process
Examining package-2.6.38-2.mycompany.fc17.x86_64.rpm: package-2.6.38-2.mycompany.fc117x86_64
package-2.6.38-2.mycompany.fc17.x86_64.rpm: does not update installed package.
Error: Nothing to do

Now what?

hmaarrfk
23rd July 2013, 05:55 AM
I'm no RPM packagers, but I think you should name your package differently, and use one of these other tags, described in "other tags" to "obsolete", or "provide", the default package.

http://fedoraproject.org/wiki/How_to_create_an_RPM_package

dhclose
23rd July 2013, 11:10 PM
Turns out the installed package had an epoch >0. Problem resolved.