LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.

Notices


Reply
  Search this Thread
Old 03-23-2007, 12:36 PM   #1
GavB
Member
 
Registered: Nov 2006
Posts: 54

Rep: Reputation: 15
Question rpm: command not found in CentOS


Hi,

Someone I know just got a server and I said I would install some stuff for them starting with the control panel from zervex.com (DSM)

I ran in to a problem straight away with an error saying:


===== Checking for basic tools =====
Checking for /bin/rpm: MISSING
FATAL: /bin/rpm not present, cannot install


I have used Centos before, I always do because the first server I ever worked with had that on so I just stuck with it. I've never known this problem before.

They have Centos 4.4 if that helps.

Any help would be much appreciated, thanks
 
Old 03-23-2007, 02:20 PM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
So check yourself;

which rpm
rpm --version

Sounds like you may need to speak with zervex.com tech support.
 
Old 03-23-2007, 05:02 PM   #3
GavB
Member
 
Registered: Nov 2006
Posts: 54

Original Poster
Rep: Reputation: 15
Hi, thanks for your reply, but this what I get when I type in that command:


login as: root
Using keyboard-interactive authentication.
Password:
Last login: Fri Mar 23 18:26:05 2007 from xxx.yyy.zzz.com
sc2:~# rpm --version
-bash: rpm: command not found
sc2:~#


Zervex.com is just where I got the control panel from so I don't think that is the problem - I've used it loads of times before, the server is hosted with 49pence. Why would the rpm command not be found?
 
Old 03-24-2007, 06:12 AM   #4
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
OK, somebody somehow either removed the rpm packages or did not install them (don't know why). You have some choices;

Boot with the Installation media and do an upgrade/add packages installation to install the rpm packages.

Copy the /usr/lib/rpm directory structure from another system or the Installation media (in rescue mode) then install the rpm packages from Installation media after rebooting.

/usr/lib/rpm/rpmi -ivh /path/to/the/packages/rpm*.<arch>.rpm

Hint: it is a good idea to have a spare copy of the rpmi file someplace safe.
 
Old 03-24-2007, 08:41 AM   #5
GavB
Member
 
Registered: Nov 2006
Posts: 54

Original Poster
Rep: Reputation: 15
Many thanks for your help.

So am I getting this right? It looks like the server host didn't install the RPM packages? I know they haven't been removed because the first thing I did was try to install that control panel which have done on many occasions before (the only commands that uses is wget and chmod then run the file)

It's just that the host has said that it will be £40+vat to reinstall the operating system, if it is something they have done wrong on installation then they shouldn't really be charging.

Last edited by GavB; 03-24-2007 at 03:25 PM.
 
Old 03-24-2007, 09:45 AM   #6
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
The default installation for any version of Linux is to install the default package installer tool or utility, with the Red Hat family it is rpm. At the very least the default rpm packages are: rpm, rpm-libs, rpm-python and popt packages.

Check your /root/install.log file and see if they were installed at one time.

Let's get the version number to start with;
$ cat /root/install.log | grep rpm-libs
Installing rpm-libs - 4.4.2-33.el5.x86_64

Now let's check if the default rpm packages are installed;
$ cat /root/install.log | grep 4.4.2-33
Installing rpm - 4.4.2-33.el5.x86_64
Installing rpm-libs - 4.4.2-33.el5.x86_64
Installing rpm-python - 4.4.2-33.el5.x86_64

I do not understand why they would want to charge for this, it sounds like they goofed to start with. What good is an operating system installation if you cannot install with the standard packaging installation tool or utility????
 
Old 03-24-2007, 10:59 AM   #7
GavB
Member
 
Registered: Nov 2006
Posts: 54

Original Poster
Rep: Reputation: 15
Hi, theres no /root/install.log file on the server for some reason - I checked on a load of my other servers and they all have it - looks like something has gone very wrong here.

With the install.log not existing the commands that you mentioned (cat /root/install.log | grep rpm-libs) are not working.

Does this mean a fresh installation is needed? or is there something we can do remotely to fix it?
 
Old 03-24-2007, 04:47 PM   #8
ctech01
LQ Newbie
 
Registered: Mar 2007
Posts: 1

Rep: Reputation: 0
CentOS was not the OS selected for installation.
This client chose Debian3.1

 
Old 03-25-2007, 06:40 AM   #9
GavB
Member
 
Registered: Nov 2006
Posts: 54

Original Poster
Rep: Reputation: 15
Yeah, looks like either the person that ordered the server chose the wrong Os or the order form on the website doesn't work. The latter is unlikely.

Thanks anyway
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
"bash: rpm: command not found" errom when trying to install any package sandeepchau123 Linux - General 16 07-06-2008 03:58 AM
bash: rpm: command not found && sudo: alien: command not found Java_Code Ubuntu 7 07-27-2006 11:57 PM
Why -bash: rpm: command not found??? Also an rpm/yum Q? vbtalent Debian 6 01-23-2006 04:55 PM
which i386 rpm is the archiving command 'ar' found in?? newguy21 Programming 2 10-07-2004 11:32 AM
rpm error-> patch: command not found Bosnja Linux - Software 5 01-30-2004 12:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions

All times are GMT -5. The time now is 11:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration