LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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-08-2013, 04:13 AM   #16
Joaquin
Member
 
Registered: Dec 2012
Posts: 56

Original Poster
Rep: Reputation: Disabled

Quote:
Originally Posted by knudfl View Post
# 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.
the command
Code:
 rpm -e --nodeps xlrunner
had been indicated by RedHat support.
 
Old 04-08-2013, 04:21 AM   #17
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2015, Slack14.1 DebJessie, + 50+ other Linux OS, for test only.
Posts: 15,455

Rep: Reputation: 2965Reputation: 2965Reputation: 2965Reputation: 2965Reputation: 2965Reputation: 2965Reputation: 2965Reputation: 2965Reputation: 2965Reputation: 2965Reputation: 2965
# 16.

Reason for saying "Never use 'rpm -e --nodeps" :
At some time you (or somebody else) have removed "rpm",
or deleted /usr/bin/rpm


You can of course remove xulrunner.
But no connected packages will work with no xulrunner. ( firefox, etc.)

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

Original Poster
Rep: Reputation: Disabled
#17

In fact, in /usr/bin there is only rpmbuild command.

Unpack
Code:
rpm2cpio <package.rpm> | cpio -idmv
the packages I do it by my own OS? I have the installation CD where I can get the rpm packages that are needed?
 
Old 04-08-2013, 04:52 AM   #19
mddnix
Member
 
Registered: Mar 2013
Location: Bengaluru, India
Distribution: Redhat, Arch, Ubuntu
Posts: 497

Rep: Reputation: 137Reputation: 137
Quote:
Originally Posted by Joaquin View Post
rpm:command not found
Its strange. but install rpm first

Code:
# yum install rpm
Or probably rpm database has become corrupt. Try first:
Code:
# rpm --rebuilddb
Reinstall xulrunner (if you think some parts have been broken):
Code:
# yum reinstall xulrunner
Then try to remove it:
Code:
# yum remove xulrunner
If there is problem in yum cache:
Code:
# yum clean all
# yum makecache

Last edited by mddnix; 04-08-2013 at 04:57 AM.
 
Old 04-08-2013, 04:57 AM   #20
Joaquin
Member
 
Registered: Dec 2012
Posts: 56

Original Poster
Rep: Reputation: Disabled
#19

rpm command not working.

The error is: bash:rpm:command not found.

The problem is rpm command
 
Old 04-08-2013, 04:58 AM   #21
mddnix
Member
 
Registered: Mar 2013
Location: Bengaluru, India
Distribution: Redhat, Arch, Ubuntu
Posts: 497

Rep: Reputation: 137Reputation: 137
Quote:
Originally Posted by Joaquin View Post
#19

rpm command not working.

The error is: bash:rpm:command not found.

The problem is rpm command
I just updated my post. see first command
 
Old 04-08-2013, 05:03 AM   #22
Joaquin
Member
 
Registered: Dec 2012
Posts: 56

Original Poster
Rep: Reputation: Disabled
#21

When I run the yum command with any option the result is in the attached image.
Attached Thumbnails
Click image for larger version

Name:	2013-04-02 17.26.13.jpg
Views:	16
Size:	225.0 KB
ID:	12261  
 
Old 04-08-2013, 05:14 AM   #23
mddnix
Member
 
Registered: Mar 2013
Location: Bengaluru, India
Distribution: Redhat, Arch, Ubuntu
Posts: 497

Rep: Reputation: 137Reputation: 137
This guy ran into problem similar like yours "can't use yum or rpm to install any software"

check post by 'Russ herrold' and also the last post that could be helpful to you.
 
Old 04-08-2013, 05:32 AM   #24
Joaquin
Member
 
Registered: Dec 2012
Posts: 56

Original Poster
Rep: Reputation: Disabled
#23

It's the big problem.

The system does not even command rpm2cpio.
 
Old 04-08-2013, 05:47 AM   #25
mddnix
Member
 
Registered: Mar 2013
Location: Bengaluru, India
Distribution: Redhat, Arch, Ubuntu
Posts: 497

Rep: Reputation: 137Reputation: 137
  1. Boot in rescue mode with RHEL install disk
  2. by default '/' is mounted at /mnt/sysimage
  3. there use rpm2cpio and follow the steps as stated previous link

Last edited by mddnix; 04-08-2013 at 05:54 AM. Reason: Sorry! Its '/' not '/root'
 
Old 04-09-2013, 04:35 AM   #26
Joaquin
Member
 
Registered: Dec 2012
Posts: 56

Original Poster
Rep: Reputation: Disabled
#25
Redhat gave me a part of the solution I think. RedHat's solution does not differ from that written by you on the forum.
It 'arose only a problem when I start RedHat in rescue mode I get the following error:

Quote:
You' dont have any Linux partition
as I come out from this problem?
 
Old 04-09-2013, 09:10 AM   #27
mddnix
Member
 
Registered: Mar 2013
Location: Bengaluru, India
Distribution: Redhat, Arch, Ubuntu
Posts: 497

Rep: Reputation: 137Reputation: 137
Quote:
Originally Posted by Joaquin View Post
You' dont have any Linux partition
did you miss
Code:
# chroot /mnt/sysimage
Booting into Rescue Mode
 
Old 04-09-2013, 09:17 AM   #28
Joaquin
Member
 
Registered: Dec 2012
Posts: 56

Original Poster
Rep: Reputation: Disabled
Wink

Hello,

I solved much more easily with the following commands:
  1. cd /
  2. tar xfvz rpm-4.4.2.3-32.el5_9.x86_64.tar.gz
  3. cd rpm-4.4.2.3-32.el5_9.x86_64.tar.gz_FILES/bin
  4. rpm --rebuilddb
  5. yum reinstall rpm

WORK!!!!
 
1 members found this post helpful.
  


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 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 tg3793 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


All times are GMT -5. The time now is 12:47 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration