Re: make vs rpm vs srpm vs yum : questions about package management in Linux.



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

.



Relevant Pages

  • Re: Basic yum question- latest version isnt latest version.
    ... right now yum has postgres 8.1.9 ... Package apr-util needs libpq.so.4, ... was install the "comat" rm for postgresql, ... duplicate lib is loaded for each app, it's also one of the reasons you ...
    (comp.os.linux.misc)
  • Re: Comments from a new user: what is Distrowatch complaining about?
    ... install klipper. ... "yum install klipper" didn't produce any result, as urpmi klipper, in ... I've seen that sort of thing work (yum finding the right ... Download the x86_64 package, un gzip it on the desktop, copy to: ...
    (Fedora)
  • Errors applying kernel patch 118833-36
    ... install of Solaris 10 11/06. ... However, once the package list is done, I see a worrisome message: ... Below is the complete console output of the patch run. ... Changes for package SUNWnfsskr will not be applied to the system. ...
    (SunManagers)
  • Re: smart package mgr question?
    ... Subject: smart package mgr question? ... I.e. the fact yum doesn't complain, ... You need to install the first ... Just do a yum smart-tray and you should get it. ...
    (Fedora)
  • Re: fc4 yum update problems on two installations
    ... The database enry for the older package does not get removed, though it was overwritten by the new version. ... to remove the rpm entry only from the database. ... Using yum remove kernel xxx worked to get the latest kernel installed, ... yum install newerpackage ...
    (Fedora)