Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to build rpms
#1

If you happen to find something you need but is not in rpm, the easy way is to use checkinstall to build one.

 

Get the checkinstall binary here: [/url][url=http://freshmeat.net/projects/checkinstall...C41%2C147%2C257]http://freshmeat.net/projects/checkinstall...C41%2C147%2C257

 

The only trick to using checkinstall is you replace make install with it.

 

example using fluxbox:

 

untar and gunzip the file

[jsw34@shadow sources]$ tar -xvzf fluxbox-0.1.14.tar.gz

 

cd into source dir

[jsw34@shadow sources]$ cd fluxbox-0.1.14

 

configure; make; and run checkinstall

[jsw34@shadow sources]$ ./configure && make && checkinstall

 

The package documentation directory ./doc-pak does not exist.

Should I create a default set of package docs? [y]: <ENTER>

 

Please choose the packaging method you want to use.

Slackware , RPM [R] or Debian [D]? R <ENTER>

 

Please write a description for the package.

End your description with an empty line or EOF.

>> My rpm

>> <ENTER>

 

you can edit the build values on the next screen or just hit ENTER to continue with the defaults.

 

Now it will build the rpm and install it.

 

Done. The new package has been installed and saved to

/usr/src/redhat/RPMS/i386/fluxbox-0.1.14-1.i386.rpm

 

voila!

 

If you have to use source, I highly reccommend using this tool. You will have accountability for everything you install and its really simple to remove or upgrade the package.

 

The rpms you build will be for the architecture you are using, however you can usually use them on newer releases, It may ask you for some newer dependencies though.

Reply
#2
Haha. Thanks! I was actually just wondering how to do that :)
Reply
#3
great post... i wish to see more posts like that
Reply
#4
booga booga
Reply
#5
thank you so much for this info, i dont know why i didnt look here first, ive been wanting to build RPM's for the newer versions of IRSSI which there are no RPM's of. The other guides i found were like... too much work or something. this makes it all a cinch, so thanks B)
Reply
#6
what if i wanted to make an RPM without actually installing it? (as i already have my package installed)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)