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



Rahul <nospam@xxxxxxxxxxxxxx> writes:

Having been recently exposed to the arcana of software installation on
Linux (RHEL in particular) I have a few nagging questions:

Hi again Rahul.

(1) What's the difference between an rpm and an srpm (source rpm)? I did
google around before I posted and got the impression that an srpm was
more "customizable" with respect to architecture etc. I was referred to
the rpm --rebuild option several times in the past when Fedora had a
package I wanted as a rpm but not RHEL.

In general rpms are binaries, srpms are source code.

But if its customizable what's the difference between that and a "from
source" install.

srpms are more customizable because you can run configure and
change options.

(2) RPM's from what I read ( http://www.rpm.org/max-rpm/index.html ) were
an abstraction designed to shield the user from the hassles of package
installation. So, what additional utility does the "yum" layer (or apt /
ebuild etc.) provide?

Yum and apt check dependencies and automatically install
additional packages if needed.

(3) Other than the default repo from where my RHEL yum pulls software off
I believe there are other repos. I've heard DAG
(http://dag.wieers.com/rpm/) been mentioned. Fedora too has its own repo.
Is it advisable to point to these too in a quest to have access to a
greater range of packages? Or is that plain stupid?

Last time I checked DAG it wasn't being actively updated.
I've been using Livna on my FC8 system.

(4) Is there no elegant way of having multiple versions of a code on a
Linux system? Say I have Packages A B and C that need Python2 and X Y Z
that need Python3. How can I satisfy this requirement. I've been often
chided for having multiple versions of a code on my system (or installing
software outside of yum / rpm) but isn't this a practical issue that
other people face too?

No, most people just install current packages.
If you really need to you can install from source.
Usually a configure for source will go to /usr/local.
Most configure scripts accept the --prefix option so you can
run configure like this:

../configure --prefix=/home/my/packages

That's easy and simple for some packages and can get
really complex for others.

(5) Is it advisable to *never* do a configure;make;make install; I can
always do a rpmbuild and then rpm -ihv right? That way all the packages I
install will be registered with the rpm package manager. Or not? What are
the pitfalls?

The pitfall is lots of things depend on lots of other things.
You're build a web of interrelationships that can easily get out of hand.

A few isolated packages might not be a big problem.
All of KDE, for example, would be a big problem.
.



Relevant Pages

  • Re: [SLE] libphp4.so?
    ... > base on which all other packages build: ... rpm -qa | grep cpp ... yast the NVIDIA drivers won't install via the installer, ...
    (SuSE)
  • Re: Redhat upgrade problem - packages fail rpm -Va
    ... > being owned by multiple packages, ... # rpm -V up2date ... {Only config files in verify error list. ... We can lean something from Microsoft's install process. ...
    (comp.os.linux.setup)
  • Re: how to add rpm ?
    ... > I have install Fc2 from NFS. ... Get yourself a good installation of "apt for rpm." ... This will upgrade all existing packages on your system. ...
    (Fedora)
  • FW: [SLE] YaST Online Update Problem
    ... >>update one of the rpms manually to see if rpm will give you a better error ... >SuSE to try to apply one of the patches? ... >I've always used YaST for Online Updates and for installing new packages. ... Not only that, but at the end of the install, it ...
    (SuSE)
  • Re: How to install Java/Frefox in FC6 -
    ... just don't trust java and rpm in the same breath, ... recall that when building packages, you always opt for ./configure && ... make && make install and I don't recall a single instance where you have ... I rebuilt kde to kde-3.3.0 using konstruct, didn't fix it. ...
    (Fedora)