[SLE] src.rpm's and rpm database
Im in the proces of installing openssh. I installed openssl from the suse cd's, and have obtained openssh-1.2.1pre25-1suse.src.rpm . I am not entirely sure what to do with src.rpm's. I know they contained the source, and i have run rpm -i openssh-1.2.1pre25-1suse.src.rpm. it installs a tar ball containing the source and a spec file. I have looked at the files in the tarball, and am sure I can install them using the instructions contained within it. But I'd like to have rpm build it using the spec file, because it automatically creates ssh startup scripts, and adds an entry into rc.config. Also, I have openssh-server-1.2.1pre25-1.i386.rpm and openssh-client-1.2.1pre25-1.i386.rpm. Am I to install these myself afterwards? If so, the above 2 rpm's install their files under /usr and not /usr/local. Is this OK? I wouldnt mind maintaing a seperate rpm database for my non suse rpm's (things i'm installing myself like openssh). I'd like to install these all under /usr/local. I am not entirely sure how to go about this though. There is a --root and a --dbpath option that I am aware of, but do I also need to use --initdb? How will having 2 seperate databases alter the way rpm works? eg will rpm -q -a just display the rpm's installed in the 'suse' db, and say rpm --dbpath /usr/local/... -q -a display just the rpm's installed in 'my' db? I pity anyone who has read this far :D Thanks anyway. -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
Abi Nourai wrote:
Im in the proces of installing openssh.
I installed openssl from the suse cd's, and have obtained openssh-1.2.1pre25-1suse.src.rpm .
I am not entirely sure what to do with src.rpm's.
I know they contained the source, and i have run rpm -i openssh-1.2.1pre25-1suse.src.rpm. it installs a tar ball containing the source and a spec file. I have looked at the files in the tarball, and am sure I can install them using the instructions contained within it. But I'd like to have rpm build it using the spec file, because it automatically creates ssh startup scripts, and adds an entry into rc.config.
Also, I have openssh-server-1.2.1pre25-1.i386.rpm and openssh-client-1.2.1pre25-1.i386.rpm.
Am I to install these myself afterwards? If so, the above 2 rpm's install their files under /usr and not /usr/local.
Is this OK?
I wouldnt mind maintaing a seperate rpm database for my non suse rpm's (things i'm installing myself like openssh). I'd like to install these all under /usr/local. I am not entirely sure how to go about this though. There is a --root and a --dbpath option that I am aware of, but do I also need to use --initdb? How will having 2 seperate databases alter the way rpm works? eg will rpm -q -a just display the rpm's installed in the 'suse' db, and say rpm --dbpath /usr/local/... -q -a display just the rpm's installed in 'my' db?
Im going to reply to myself just this once. To clarify some things...I'd like to build openssh-1.2.1pre25-1suse.src.rpm, which i downloaded from www.openssh.com. I run rpm -i openssh-1.2.1pre25-1suse.src.rpm and it installs files in /usr/src/packages/SOURCES and /usr../packages/SPECS. The spec file is created with a suse distro in mind. To build and install I use the command rpm -b <X> <spec file>... now I have a problem with the <X>, the various possibilities confuse me. Here are 3 options rpm -bi , rpm -bb, rpm-ba I do not know which i should use.
Fromwhat I've read, -bi compiles and installs the package (technically it executes the %prep,build,install bits of the spec file) whereas -bb also builds a binary rpm.
What I am wondering is, do I want this binary rpm created with the -bb option? if i used -ba to obtain the binary rpm, installing it with rpm -i would be pointless right? Because it should be installed anyway. But what I am unsure is, if I invoke rpm -bb, will openssh be entered into the rpm db? If not running rpm -U <new binary rpm> surely will enter it into the db. Finally, in regards to maintaining a second db: correct me if I am wrong: currently the rpm db for suse is in /var/lib/rpm If i run rpm -initdb /var/lib/myrpm, then I can create my own rpm db. Now somewhere, probably in /usr/lib/rpm/rpmrc there is an entry for a db that rpm uses as default. This no doubt points to var/lib/rpm. If i want to install my own rpm's (not from suse cd) under /usr/local to maintain a 'clean' suse distro, then i can use rpm -i --dbpath \ /var/lib/myrpm --root /usr/local. Then the rpm will be stored in my newly created db. Anyway, I'd like to know if I am completely wrong. RPM is very sophisticated. -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
participants (1)
-
nagash@ozemail.com.au