Solved

explanation of rpm

Posted on 2011-03-16
8
567 Views
Last Modified: 2012-08-14
I am learning linux and would like to install some programs. I tested installing R, with

./configure
make
make check
make install

That install seemed to go well and is working. However I want to install yum now. After downloading the source i looked at INSTALL and see

run make install, if you're a masochist.

it then says that your better off making an rpm. Since I have never made an rpm and dont have any idea how to, I started looking for an .rpm package of yum that I could install. However I cant seem to find one. I am not sure if I am just not looking in the right place, or if I am going about this in the wrong way.

Am I able to just download a .rpm file from the internet and install it, or do you have to build an rpm for every install package? Should I be looking for rpms in a different place?  ( I am using Red Hat 4)



0
Comment
Question by:ryan80
8 Comments
 
LVL 2

Assisted Solution

by:DerekStone
DerekStone earned 125 total points
ID: 35151852
You'll want to use a prepackaged RPM unless there's some pressing reason not to. Perhaps the RPM's in Red Hat's (or Fedora, etc.) repository aren't the version you need, you need to recompile them for some specific option, etc.

Search for the package by doing a "yum search httpd". Then do a "yum install httpd".

The configure/make/install process is better left for times when a suitable RPM isn't already available.
0
 
LVL 12

Author Comment

by:ryan80
ID: 35152008
where would i find the prepackaged rpms?
0
 
LVL 12

Author Comment

by:ryan80
ID: 35152019
yum is what I am tyring to install
0
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 
LVL 35

Accepted Solution

by:
torimar earned 125 total points
ID: 35152088
Here are two guides for installing yum on RH 4:
http://www.pinoytux.com/linux/howto-install-yum-on-rhel-4
http://techtrouts.com/how-to-install-yum-on-red-hat-enterprise-linux-4/

But I think you are making it far more difficult for yourself than necessary.
RH 4 is very old; I can only imagine you use it to learn Linux following a course in a book that also gave you the installation media.

But there are more modern and free versions of Linux to use these days, with yum etc pre-installed, and good repositories with current software. Use CentOS, which is exactly what RH is, only free and community-based: www.centos.org

On a normal Linux installation these days, you will hardly ever have to configure, make and install your software from sources, so doing that complicates your introduction to Linux.
0
 
LVL 12

Assisted Solution

by:hfraser
hfraser earned 125 total points
ID: 35152109
You can find an rpm for yum at http://www.rpmfind.net.

There's a reason for the warning about doing a "make install". RPM packages include much more than just the files needed for the package; they also include dependency information that's used not only to determine what other packages are needed, but also what is provided in the package. The rpm (and by extension yum) programs use this dependency information to ensure that things don't get broken. The information is kept in a database that's used to automatically download needed packages (as in yum install), and to prevent the removal of packages that are needed.

There is an rpmbuild command that will build an rpm from a source distribution. Check for a ".spec" file for information.

It's worth reading about how rpm works if you're heading down this path.
0
 
LVL 9

Assisted Solution

by:svs
svs earned 125 total points
ID: 35152156
yum is included with RHEL4 (I'm assuming that is what you are using).  If it's missing, you can try reinstalling it with up2date.
0
 
LVL 12

Author Comment

by:ryan80
ID: 35152246
Thanks,

I will go ahead and load a copy of CentOS.
0
 
LVL 12

Author Closing Comment

by:ryan80
ID: 35206647
Thanks for the explanation
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
High Bandwidth Usage 6 75
Which is more secure: EAP or machine certificate for IKEv2 VPN? 1 134
Linux script delete files 3 47
Disabling security updates Ubuntu 3 30
This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
Fine Tune your automatic Updates for Ubuntu / Debian
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question