LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-03-2003, 04:29 AM   #1
sandeepchau123
LQ Newbie
 
Registered: Nov 2003
Posts: 12

Rep: Reputation: 0
"bash: rpm: command not found" errom when trying to install any package


"bash: rpm: command not found" whenever i try to instal any package
i get this error in every shell (bash change according shell )



my PATH set to
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin

tell me how to solve this problem
thanks in advance.
 
Old 12-03-2003, 04:32 AM   #2
jkobrien
Member
 
Registered: Jun 2003
Location: Dublin, Ireland
Distribution: Slackware, LFS, Ubuntu, RedHat, Slamd64
Posts: 507

Rep: Reputation: 30
You have to find rpm, or make sure that it is installed.

Try this...

locate -u
locate rpm | grep bin

John
 
Old 12-03-2003, 05:07 AM   #3
sandeepchau123
LQ Newbie
 
Registered: Nov 2003
Posts: 12

Original Poster
Rep: Reputation: 0
my rpm command was running previously but suddenly from last week it is not working
whenever irun the command you said, i got following response

[root@sandeep RPMS]# locate rpm | grep bin
/usr/bin/rpmbuild
/usr/bin/rpmgraph
/mnt/cdrom/RedHat/RPMS/bind-9.2.1-16.i386.rpm
/mnt/cdrom/RedHat/RPMS/bind-utils-9.2.1-16.i386.rpm
/mnt/cdrom/RedHat/RPMS/binutils-2.13.90.0.18-9.i386.rpm
/mnt/cdrom/RedHat/RPMS/redhat-config-bind-1.9.0-13.noarch.rpm
/mnt/cdrom/RedHat/RPMS/ypbind-1.11-4.i386.rpm
 
Old 12-03-2003, 06:37 AM   #4
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,637

Rep: Reputation: Disabled
Okay, then rpm is missing (you only have "rpmbuild", "rpmgraph", and some *.rpm's). Seems you will have to reinstall. To be one the safe side, try locate rpm without grep -- if the output is manageable, look again in case your version was/is not installed in /sbin or /bin. Good luck.
 
Old 08-05-2006, 10:00 AM   #5
Niceman2005
Member
 
Registered: Nov 2004
Distribution: Fedora Core 2
Posts: 330

Rep: Reputation: 30
Hi,

I am facing similar problem too....wondering if anyone has got the solution?
I mean, to reinstall as stated, do you mean reinstall the distribution?
i am wondering....the rpm command...is it itself a rpm package?

if it is, then i can possibly find its rpm and reinstall it...if not, how do i fix it?

thanks for taking time reading my thread,

Regards
Y
 
Old 08-05-2006, 01:28 PM   #6
introuble
Member
 
Registered: Apr 2004
Distribution: Debian -unstable
Posts: 700

Rep: Reputation: 31
What distribution are we talking about here?
 
Old 08-06-2006, 09:05 PM   #7
Niceman2005
Member
 
Registered: Nov 2004
Distribution: Fedora Core 2
Posts: 330

Rep: Reputation: 30
Hi,

My case is on rhel3.
I still not sure how to solve it, anyway my rpm command doesnt work at all.

anything that has the rpm word on it doesnt work.

i can't rpm -i or rpm -e or rpm -q anymore. weird problem, searched through internet i can only find people facing problem with rpm hang but not this case....
 
Old 08-07-2006, 03:29 AM   #8
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,637

Rep: Reputation: Disabled
Re-install rpm only, of course. That is, if your system is stable for all other issues...
 
Old 08-07-2006, 08:01 AM   #9
Niceman2005
Member
 
Registered: Nov 2004
Distribution: Fedora Core 2
Posts: 330

Rep: Reputation: 30
Hi,
thanks for your reply.
How do i actually reinstall the rpm? I tried look for resource regarding reinstall rpm but all it feeds back are those articles regarding rpm -i, rpm -e etc, what i need to know is how to reinstall or fix the actual "rpm" command...coz it seems that this command is not working..

is the rpm command itself a rpm package too? that i uninstall by rpm -e and reinstall again with rpm -i?

if it is, i supposed things won't be hard to fix. pls teach me how...thanks for taking time helping.

Regards
Y
 
Old 08-07-2006, 08:51 AM   #10
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,637

Rep: Reputation: Disabled
No, that would be installing recursively -- or bootstrapping? Whatever. I meant installation from CD or by YUM (?), that online update service of RedHat's.
 
Old 06-22-2007, 07:21 AM   #11
saurabh123
LQ Newbie
 
Registered: Jun 2007
Posts: 3

Rep: Reputation: 0
I have a similar problem, in fact my both rpm and yum command are not working and when i use them i get the error :command not found. I tried to install rpom using apt-get install rpm ,that too failed and when i tried using apt-get update even that failed.Could you please tell me how to fix the problem ?
 
Old 06-22-2007, 08:18 AM   #12
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,637

Rep: Reputation: Disabled
Welcome to LQ.

Please state what distribution you are using. If you have CDs / DVDs install from those...
 
Old 06-22-2007, 08:47 AM   #13
saurabh123
LQ Newbie
 
Registered: Jun 2007
Posts: 3

Rep: Reputation: 0
i'm using ubuntu distribution and have an AMD 64 bit processor.
 
Old 06-22-2007, 08:54 AM   #14
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,637

Rep: Reputation: Disabled
No wonder then . Ubuntu is based on debian, their package system is "apt". You have probably no rpm on your system and no use for it there.

What do you want to install? Have you tested ubuntu's repositories (they have at least three AFAIK)?
 
Old 06-22-2007, 08:59 AM   #15
saurabh123
LQ Newbie
 
Registered: Jun 2007
Posts: 3

Rep: Reputation: 0
Thanx for your reply but i am new to linux and is not very well familiar with the terminology, so is installing yum and rpm is not required in ubuntu distribution because most of the things (as far as i know) is installed in linux using these two ways
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
bash: passwd: command not found "HELP" balweg Red Hat 4 05-05-2005 03:47 PM
"bash: run: command not found" ? neuropulse Linux - Newbie 10 04-23-2005 07:58 AM
How to install "make" command from rpm on cd 2 - red hat linux 7.0 ZARGON Linux - Newbie 2 08-31-2004 10:53 AM
bash says "command not found" webguru24 Programming 2 01-05-2004 08:32 PM
Newbie problem: Starting YAST gives me "-bash: yast: command not found". cattleya Linux - Software 9 11-20-2003 11:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:38 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