*
The moose likes Linux / UNIX and the fly likes where rpm is installed Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "where rpm is installed" Watch "where rpm is installed" New topic
Author

where rpm is installed

may Lee
Ranch Hand

Joined: Nov 20, 2003
Posts: 68
When we install rpm in Redhat 9, what acturally happen? where the package is installed, where the bin, man, doc, config or directory? Could anyone give me a rough idea? how to find them?
Thanks. I am not new to Linux, not clear about this concept

For example, when I run rpm from /mnt/cdrom

rpm -ivh vnc-server, it is put on different places like/usr/bin/Xvnc,/usr/bin/vncserver, /usr/share/man...

rpm -ivh httpd-devel-2.0.40.21, I don't know what happen
Alton Hernandez
Ranch Hand

Joined: May 30, 2003
Posts: 443
Originally posted by may Lee:
When we install rpm in Redhat 9, what acturally happen? where the package is installed, where the bin, man, doc, config or directory? Could anyone give me a rough idea? how to find them?
Thanks. I am not new to Linux, not clear about this concept

For example, when I run rpm from /mnt/cdrom

rpm -ivh vnc-server, it is put on different places like/usr/bin/Xvnc,/usr/bin/vncserver, /usr/share/man...

rpm -ivh httpd-devel-2.0.40.21, I don't know what happen


The one who built the rpm will determine where the individual files are to be placed although they normally follow certain convention. If you want to know where the files are to be installed, do an rpm -qipl first.
George Brown
Ranch Hand

Joined: Sep 26, 2000
Posts: 919
May,

You may want to check out this rpm how-to
It's clear and concise, and should make the workings of rpm a bit clearer.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15951
    
  19

Basically, there's 2 parts. The RPM itself registers in the RPM database. I think the default one's somewhere like /var/rpms. I'm not in front of a RH machine at the moment, so I can't check.

The RPM database just tracks which RPMs are installed, and is used to ensure that prerequsites are matched and conflicts are resolved when installing new RPMs or removeing existing ones. It's also what gets used to provide the snaswer to the "rpm -qa" command.

RPMS themselves are the equivalent of ZIP files (or at least tarballs) with scripts attached. That's a gross oversimplification, but a good starting point. Part of the package is a manifest that tells what files will go where. The great thing about using RPMs over simple ZIP/tar files is that thanks to this list, you can distribute files in the most convenient places like /etc, /usr/bin and so forth instead of lumping them together under /usr/local/myapp and having a long nasty PATH list, having to run all over the filesystem looking for config files to backup, and so forth.

The scripting facility is optional. The RPM spec handles standard file copying and prerequisite detection using the manifest. You only need to code scripts if you want to customize the installation/removal of a package or do checking above and beyond what's basic to RPM.

RPMs are fun to create, and, unlike Windows installers, you not only get assistance in installation/removal, you can also check installed packages for damage (rpm -V) and find out where the files got installed (rpm -ql).


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: where rpm is installed
 
Similar Threads
Installing SDK 1.3. on Redhat Linux 7.0
How much Mem. required for Apache
RPM install
JDK, path problem in Linux
Problem, Starting Websphere MQ in RHEL 5