LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   how do i make an rpm? (https://www.linuxquestions.org/questions/linux-software-2/how-do-i-make-an-rpm-203910/)

webazoid 07-11-2004 10:03 PM

how do i make an rpm?
 
after compiling apps, how can i make an rpm out of them so i don't have to compile them again the next time i install them (i.e. after a new install). also, how do i unistally apps create by the ./configure, make, make install commands? thansk.

Cerbere 07-11-2004 10:38 PM

Try checkinstall. It replaces the 'make install' step when compiling from source, and it creates an RPM (or Slack *.tgz or Debian *.deb) package for you.

Enjoy!
--- Cerbere

[edit] For packages that have been installed from source, the usual method to uninstall is with the command 'make uninstall' from the original source directory. What, you deleted the original source directory? Get checkinstall. [/edit]

eisman 07-11-2004 10:45 PM

Quote:

Originally posted by Cerbere
Try checkinstall. It replaces the 'make install' step when compiling from source, and it creates an RPM (or Slack *.tgz or Debian *.deb) package for you.

That is correct, but you must add an option to save the rpm, else its gone again.

Cerbere 07-12-2004 12:48 AM

Quote:

Originally posted by eisman
That is correct, but you must add an option to save the rpm, else its gone again.
Not with any of the versions I've used. The package has always been created and put in the source directory, so all you have to do is move it somewhere before you delete the directory.

Enjoy!
--- Cerbere

webazoid 07-12-2004 07:27 PM

are there any alternative programs? how do sites like sourceforge and programs like gaim build rpm's? checkinstall? i'm using mdk 10. is this program 'common' software? i woulnd't use it if it's sketchy/buggy and may adversely affect my system/future installations. thanks.



Copying files to the temporary directory...OK

Striping ELF binaries and libraries...OK

Compressing man pages...OK

Building file list...OK


**************************************
**** RPM package creation selected ***
**************************************

Building RPM package... FAILED!

*** Failed to build the package


========
opening up the error log:



Building target platforms: i386
Building for target i386
Processing files: atk-1.6.0-1
Finding Provides: /usr/lib/rpm/filter.sh ' ' /usr/lib/rpm/find-provides
Using BuildRoot: /home/backup/gtk/atk-1.6.0/buildroot to search libs
Finding Requires: /usr/lib/rpm/filter.sh ' ' /usr/lib/rpm/find-requires /home/backup/gtk/atk-1.6.0/buildroot i386
Provides: atk libatk-1.0.so.0 devel(libatk-1.0)
Requires(interp): /bin/sh
Requires(rpmlib): rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(CompressedFileN
ames) <= 3.0.4-1
Requires(post): /bin/sh
Requires: /bin/sh libc.so.6 libc.so.6(GLIBC_2.0) libc.so.6(GLIBC_2.1.3) libc.so.
6(GLIBC_2.2) libdl.so.2 libglib-2.0.so.0 libgmodule-2.0.so.0 libgobject-2.0.so.0
devel(libdl) devel(libglib-2.0) devel(libgmodule-2.0) devel(libgobject-2.0)
Checking for unpackaged file(s): /usr/lib/rpm/check-files /home/backup/gtk/
atk-1.6.0/buildroot
error: Installed (but unpackaged) file(s) found:



RPM build errors:
Installed (but unpackaged) file(s) found:

eisman 08-07-2004 02:09 AM

Quote:

Originally posted by Cerbere
Not with any of the versions I've used. The package has always been created and put in the source directory, so all you have to do is move it somewhere before you delete the directory.

Enjoy!
--- Cerbere

Hmmm thanks for the information, I'll have to look into this then.


All times are GMT -5. The time now is 01:56 PM.