LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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, 05: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, 05:21 AM   #17
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,272

Rep: Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663
# 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, 05: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, 05:52 AM   #19
mddesai
Member
 
Registered: Mar 2013
Location: Bengaluru, India
Distribution: Redhat, Arch
Posts: 485

Rep: Reputation: 133Reputation: 133
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 mddesai; 04-08-2013 at 05:57 AM.
 
Old 04-08-2013, 05: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, 05:58 AM   #21
mddesai
Member
 
Registered: Mar 2013
Location: Bengaluru, India
Distribution: Redhat, Arch
Posts: 485

Rep: Reputation: 133Reputation: 133
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, 06: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 Images
File Type: jpg 2013-04-02 17.26.13.jpg (225.0 KB, 11 views)
 
Old 04-08-2013, 06:14 AM   #23
mddesai
Member
 
Registered: Mar 2013
Location: Bengaluru, India
Distribution: Redhat, Arch
Posts: 485

Rep: Reputation: 133Reputation: 133
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, 06: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, 06:47 AM   #25
mddesai
Member
 
Registered: Mar 2013
Location: Bengaluru, India
Distribution: Redhat, Arch
Posts: 485

Rep: Reputation: 133Reputation: 133
  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 mddesai; 04-08-2013 at 06:54 AM. Reason: Sorry! Its '/' not '/root'
 
Old 04-09-2013, 05: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, 10:10 AM   #27
mddesai
Member
 
Registered: Mar 2013
Location: Bengaluru, India
Distribution: Redhat, Arch
Posts: 485

Rep: Reputation: 133Reputation: 133
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, 10: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 12:25 PM
yum: command not found on RHEL5.5 philosophia Linux - Newbie 2 10-26-2010 02:13 PM
Yum Command Not Found Peter_APIIT Fedora 17 03-25-2007 12:49 AM
bash: rpm: command not found && sudo: alien: command not found Java_Code Ubuntu 7 07-28-2006 12:57 AM
Why -bash: rpm: command not found??? Also an rpm/yum Q? vbtalent Debian 6 01-23-2006 05:55 PM


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