Solved

explanation of rpm

Posted on 2011-03-16
8
570 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Why Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.

 
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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

In my business, I use the LTS (Long Term Support) versions of Linux. My workstations do real work, and so I rarely have the patience to deal with silly problems caused by an upgraded kernel that had experimental software on it to begin with from a r…
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…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

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