Solved

explanation of rpm

Posted on 2011-03-16
8
559 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
Comment Utility
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
Comment Utility
where would i find the prepackaged rpms?
0
 
LVL 12

Author Comment

by:ryan80
Comment Utility
yum is what I am tyring to install
0
 
LVL 35

Accepted Solution

by:
torimar earned 125 total points
Comment Utility
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
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 12

Assisted Solution

by:hfraser
hfraser earned 125 total points
Comment Utility
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
Comment Utility
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
Comment Utility
Thanks,

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

Author Closing Comment

by:ryan80
Comment Utility
Thanks for the explanation
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

728 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now