Linux-Noob Forums
How to build rpms - Printable Version

+- Linux-Noob Forums (https://www.linux-noob.com/forums)
+-- Forum: Linux Noob (https://www.linux-noob.com/forums/forum-3.html)
+--- Forum: Tips and Tricks (https://www.linux-noob.com/forums/forum-59.html)
+---- Forum: Package Management (https://www.linux-noob.com/forums/forum-28.html)
+---- Thread: How to build rpms (/thread-3789.html)



How to build rpms - grep420 - 2004-01-07


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.




How to build rpms - gamekeeper - 2004-01-12

Haha. Thanks! I was actually just wondering how to do that :)



How to build rpms - morbondu - 2004-01-13

great post... i wish to see more posts like that



How to build rpms - FluKex - 2004-04-13

booga booga



How to build rpms - dubkat - 2004-05-31

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)



How to build rpms - dubkat - 2004-06-01

what if i wanted to make an RPM without actually installing it? (as i already have my package installed)