Is it possible to repackage tarballs as rpm's?
hi all
i have just installed qt 4 tarball with a view to installing kde 3.4 and its dependencies as rpm packages. the qt4 installation went fine (took ages, though), but when i clicked on arts to install it, the installer(i'm using rpmdrake) said that i needed to install qt :(.
i changed the PATH and PKG_CONFIG variables in .bashrc to that of the qt bin and lib directories, but arts doesn't seem to be able to 'realise' that qt even exists on my system.
is there any way that i can get an rpm package to be aware of where tarballs are installed because? alternatively, is there a way of somehow repackaging a tarball as a rpm? i'm sure there's a program which can achieve this, but i can't remember the name.
help is very much appreciated
Re: I also like checkinstall
Quote:
Originally Posted by oldcpu
Quote:
Originally Posted by Libervisco
There is another small utility that can do this:
checkinstall
The way it works is quite simple, instead of running "make install" in your compilation process, you run "checkinstall". You'll be asked to choose between deb, rpm and slackware package and it'll automatically create and install the package of your choice.
It also asks some other questions (such as to provide a package description), but it's not too important and you can skip all questions except the one where you answer with "RPM" by passing a -y option. So it is like this when you install a normal source package:
./configure
make
(su as root)
checkinstall -y
(choose RPM)
and voila, you get a RPM package created at the same directory and installed to the system. :)
I use checkinstall a lot. It doesn't always work, but it works reasonably often.
On occasions checkinstall will fail to work. In such cases one "work around" I found, is sometimes after
./configure and
make, and as su/root
checkinstall (where checkinstall then fails), I do the following:
Still logged in the bash shell as "su/root" I then immediately run the traditional
make install, and then run
checkinstall a second time, immediately after a successful "make install". Checkinstall will often still have my "settings" from my initial failed checkinstall already entered. And checkinstall will often work this second time (after make install), while it failed the first time.
I've also found I can take this rpm from checkinstall, and copy it to another linux pc on my network (where I maintain identical linux packages), and the rpm will install the packaged program on the second pc.
i also noticed that it failed to work on occassion. the same as you, i noticed that if i ran "checkinstall -R", it would fail at the beginning. if i ran "make install", then ran "checkinstall -R", it would would work fine. i don't know why.