Operating System - Linux
1753480 Members
4881 Online
108794 Solutions
New Discussion юеВ

regarding rpm installation

 
vvsha
Frequent Advisor

regarding rpm installation

Hi

Can anyone help me for the following activities

1) how to install source rpms, For example glibc-2.3.2-95.30.src.rpm


2) How we can find out dependancies rpm for a perticular rpm.


I am using RHEL 3 .

Please help me on this ....
6 REPLIES 6
Steven E. Protter
Exalted Contributor

Re: regarding rpm installation

Shalom,

To build from source you need an rpm called rpmbuild installed.

Then its just rpmbuild glibc-2.3.2-95.30.src.rpm

man rpm.

rpm -R
rpm --requires

You can force an rpm to reveal its dependenciess.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Hasan  Atasoy
Honored Contributor

Re: regarding rpm installation

you can install rpm like

rpm -ivh glibc-2.3.2-95.30.src.rpm
Ivan Ferreira
Honored Contributor

Re: regarding rpm installation

Normally, you use:

rpmbuild --rebuild glibc-2.3.2-95.30.src.rpm

This will generate the "binary rpm" in /usr/src/redhat/RPMS/* directory.

Then you can install the resulting rpm file with rpm -ivh.

Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
vvsha
Frequent Advisor

Re: regarding rpm installation

how to find out all dependencies of a rpm installed.

also how to find out all dependencies of a new rpm.


please help me on this
skt_skt
Honored Contributor

Re: regarding rpm installation

rpm -q --requires for installed rpm.

rpm -qp --requires for not installed rpm.

The command basically returns a list of files that must be on the system.

Then you can go over the list with this command:
"rpm -q --whatprovides " and it will return you the package name.


# rpm -q --requires lftp-2.6.3-6
/bin/sh
config(lftp) = 2.6.3-6
libc.so.6
libc.so.6(GLIBC_2.0)
libc.so.6(GLIBC_2.1)
libc.so.6(GLIBC_2.1.3)
libc.so.6(GLIBC_2.2)
libc.so.6(GLIBC_2.2.3)
libc.so.6(GLIBC_2.2.4)
libc.so.6(GLIBC_2.3)
libcrypto.so.4
libdl.so.2
libdl.so.2(GLIBC_2.0)
libdl.so.2(GLIBC_2.1)
libm.so.6
libm.so.6(GLIBC_2.0)
libncurses.so.5
libnetwork.so
libreadline.so.4
libresolv.so.2
libresolv.so.2(GLIBC_2.2)
libssl.so.4
libutil.so.1
libutil.so.1(GLIBC_2.0)
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1


# rpm -q --whatprovides libc.so.6
glibc-2.3.2-95.44

Sitarama.H.N
Advisor

Re: regarding rpm installation

please type the below commands for installing and finding the dependencies.

rpm -ivh glibc-2.3.2-95.30.src.rpm (installing)

rpm -e -nodefs glibc-2.3.2-95.30.src.rpm( checking the dependencies)