Re: make vs rpm vs srpm vs yum : questions about package management in Linux.
- From: Keith Keller <kkeller-usenet@xxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 30 May 2008 14:19:09 -0700
On 2008-05-30, Rahul <nospam@xxxxxxxxxxxxxx> wrote:
Thanks Keith! So, will yum / rpm *never* (or almost never) install software
to the /usr/local/ folder? Just making sure I understand the install-dir.
convention correctly? Is the /usr/local/ meant only for the user? What
places (/bin /usr/bin /usr/sbin come to mind) does yum / rpm prefer to
install stuff in and again is there a convention?
It's all convention. yum doesn't install anything; it downloads
packages and asks rpm to install them. rpm installs packages without
regard to where the files are to be placed; it does no checking to see
whether it's installing to /usr/local when it shouldn't (because one
might wish to build one's own package that is to be installed to
/usr/local). So it has nothing to do with yum/rpm; it's how each
individual package is built.
Again, by convention, directories outside /usr/local are generally
reserved for files that are installed by the distro and/or through the
package manager. But you could certainly choose to compile your own
software from source and install to /usr/bin and friends; it's just Not
A Good Idea (TM).
I feel comfortable doing a from source install since the EXEC_PREFIX,
LIB_PREFIX etc. allow me to know where the files are getting installed to.
But frequently I do a 'yum install' and end up with no idea of where it
actually added the files to!
You can use rpm to query the package to see where the packages will go.
(I don't know if yum can do this; read the man page to see, or read the
manpage for rpm to see the syntax for querying a package file.)
--keith
--
kkeller-usenet@xxxxxxxxxxxxxxxxxxxxxxxxxx
(try just my userid to email me)
AOLSFAQ=http://www.therockgarden.ca/aolsfaq.txt
see X- headers for PGP signature information
.
- References:
- Prev by Date: Re: Help needed on replacing a failed drive
- Next by Date: Re: APT::Default-Release being ignored by Debian Etch
- Previous by thread: Re: make vs rpm vs srpm vs yum : questions about package management in Linux.
- Next by thread: Re: make vs rpm vs srpm vs yum : questions about package management in Linux.
- Index(es):
Relevant Pages
|