LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 04-03-2013, 02:16 AM   #1
Joaquin
Member
 
Registered: Dec 2012
Posts: 56

Rep: Reputation: Disabled
rpm command and yum command not found


Hello,

after typing, this command:

Code:
rpm -e --nodeps xulrunner
does not work the command rpm and yum command
 
Old 04-03-2013, 02:49 AM   #2
Glennzo
Member
 
Registered: May 2003
Location: Salem, Mass USA
Distribution: Fedora
Posts: 394

Rep: Reputation: 52
What is the specific error output from both commands?
 
Old 04-03-2013, 02:50 AM   #3
Joaquin
Member
 
Registered: Dec 2012
Posts: 56

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Glennzo View Post
What is the specific error output from both commands?
rpm:command not found
 
Old 04-03-2013, 02:54 AM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
we will need a lot more information
like:

What is the operating system you are using ?
The version of the OS ?
And the full error you are getting .

I take it you want to install "xulrunner"
from the normal user account become "root" in the terminal
for CentOS 6.4
Code:
su -
------- then type in your root password when asked -----
yum search xulrunner
--- then from that list install it ----
yum install xulrunner
for the rpm command --- It is NOT recommended to use
unless as a very last resort
to manually install xulrunner AND all the needed dependencies FIRST before installing "xulrunner"
 
Old 04-03-2013, 03:02 AM   #5
Joaquin
Member
 
Registered: Dec 2012
Posts: 56

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by John VV View Post
we will need a lot more information
like:

What is the operating system you are using ?
The version of the OS ?
And the full error you are getting .

I take it you want to install "xulrunner"
from the normal user account become "root" in the terminal
for CentOS 6.4
Code:
su -
------- then type in your root password when asked -----
yum search xulrunner
--- then from that list install it ----
yum install xulrunner
for the rpm command --- It is NOT recommended to use
unless as a very last resort
to manually install xulrunner AND all the needed dependencies FIRST before installing "xulrunner"
The O.S. is RedHat 5.

The error is
Quote:
rpm:command not found
and this
Quote:
error:Unable to opem /usr/lib/rpm/rpmrc for reading:No such file or directory
 
Old 04-03-2013, 03:10 AM   #6
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
well the current RHEL5 is 5.9

and you did buy the required support contract ? right ?

can you post the output of
Code:
cat /etc/redhat-release
if "yum" and "rpm" are not installed , then you have a very big problem .
the fastest fix will be to reinstall
 
Old 04-03-2013, 03:22 AM   #7
Joaquin
Member
 
Registered: Dec 2012
Posts: 56

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by John VV View Post
well the current RHEL5 is 5.9

and you did buy the required support contract ? right ?

can you post the output of
Code:
cat /etc/redhat-release
if "yum" and "rpm" are not installed , then you have a very big problem .
the fastest fix will be to reinstall
How does it happen that running the command I wrote in the first post, it happened prevents this problem?

If, for example
Code:
yum update
launch, the result is in the attached image.
Attached Thumbnails
Click image for larger version

Name:	2013-04-02 17.26.13.jpg
Views:	545
Size:	225.0 KB
ID:	12202  
 
Old 04-03-2013, 03:32 AM   #8
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
man that is hard to read
please "copy/paste" the text into the forum

with this RHEL5 install you do have the support contract you bought

have you contacted red hat tech support
-- you are paying for it , so you might want to use it

you will likely need to manually extract files from the rpm's that you will need to download from RHN ( ftp or in the web browser)
and for that you will need there help
 
Old 04-03-2013, 10:28 PM   #9
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
This
Code:
rpm -e --nodeps xulrunner
would only erase xulrunner.

Its likely some other cmd has been used to remove bits of rpm/yum.
You could check the root user's history; might show something.

In any case, you could ask RH or try to force re-install rpm (& possibly yum) from the install media, but if its been upgraded one or more point releases since the install it might still have issues.
You could try downloading the rpm/yum rpms (from RH)for the exact version you have (eg say 5.6) and force installing those.
As above, the latest v5 is 5.9.
Please post the output of the 'cat /etc/redhat-release' cmd, as requested by JohnVV & check if the install media is the same or not.
 
Old 04-05-2013, 03:08 AM   #10
Joaquin
Member
 
Registered: Dec 2012
Posts: 56

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by chrism01 View Post
This
Code:
rpm -e --nodeps xulrunner
would only erase xulrunner.

Its likely some other cmd has been used to remove bits of rpm/yum.
You could check the root user's history; might show something.

In any case, you could ask RH or try to force re-install rpm (& possibly yum) from the install media, but if its been upgraded one or more point releases since the install it might still have issues.
You could try downloading the rpm/yum rpms (from RH)for the exact version you have (eg say 5.6) and force installing those.
As above, the latest v5 is 5.9.
Please post the output of the 'cat /etc/redhat-release' cmd, as requested by JohnVV & check if the install media is the same or not.
The release is:

Code:
Red Hat Enterprise Linux Server release 5.9 (Tikanga)
 
Old 04-07-2013, 09:49 PM   #11
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
As per my above '...& check if the install media is the same or not.'
 
Old 04-08-2013, 02:22 AM   #12
Joaquin
Member
 
Registered: Dec 2012
Posts: 56

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by chrism01 View Post
As per my above '...& check if the install media is the same or not.'
I do not know what to ask. RedHat is duly registered support is working but are now many days that I do not give a solution.
 
Old 04-08-2013, 03:30 AM   #13
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 12.
Quote:
I do not know what to ask. RedHat is duly registered support
Please call your Redhat support to ask for help.
They will most likely advise you to reinstall the OS.

Possible workarounds : Use another OS to unpack the rpm package(s)
That's $ rpm2cpio <package.rpm> | cpio -idmv
... and then copy the missing files into their locations.

I.e. you cannot force install anything with no rpm command.

-
 
Old 04-08-2013, 03:34 AM   #14
Joaquin
Member
 
Registered: Dec 2012
Posts: 56

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
# 12.

Please call your Redhat support to ask for help.
They will most likely advise you to reinstall the OS.

Possible workarounds : Use another OS to unpack the rpm package(s)
That's $ rpm2cpio <package.rpm> | cpio -idmv
... and then copy the missing files into their locations.

I.e. you cannot force install anything with no rpm command.

-
Do you think there is a way to recover the OS without having to reinstall? Also because I have already installed a lot of software that kept me ilmpegnato long time to configure it.
 
Old 04-08-2013, 04:11 AM   #15
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 14.

1) Never use 'rpm -e --nodeps ', unless you know what will happen.

2) Use another rpm based Linux OS to unpack the missing files : See #13.
 
  


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
yum install flash ... yum: command not found ... which yum ... /usr/bin/yum tg0000 Fedora 8 04-13-2011 11:25 AM
yum: command not found on RHEL5.5 philosophia Linux - Newbie 2 10-26-2010 01:13 PM
Yum Command Not Found Peter_APIIT Fedora 17 03-24-2007 11:49 PM
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

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

All times are GMT -5. The time now is 02:55 PM.

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