LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-10-2015, 04:26 AM   #1
smallgorgon
LQ Newbie
 
Registered: Aug 2015
Posts: 2

Rep: Reputation: Disabled
rpm command not found


Dear all
I've just uninstall some software on linux. Unfortunately , after that rpm command could not work. When I run rpm command, terminal displays : -bash: rpm: command not found.
I'm using redhat 2.6.32-71.el6.x86_64 #1 SMP Wed Sep 1 01:33:01 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux

Pls help me to install rpm command again ( without reinstall OS)

Regards
 
Old 08-10-2015, 05:15 AM   #2
auge
Member
 
Registered: May 2002
Location: Germany
Distribution: CentOS, Debian, LFS
Posts: 100
Blog Entries: 1

Rep: Reputation: Disabled
Copy the binaries from a live-stick.
 
Old 08-10-2015, 12:43 PM   #3
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
what command did you use?
and did you READ!!! the warnings?
and did you use the VERY DANGEROUS " -y" option ?

the "-y" option in yum if removing software can REMOVE 90+percent of the operating system and NOT !!! inform you that it is about to do that


reinstall the operating system would be the FASTEST option

or
READ the yum log for a list of things uninstalled
then manually reinstall them

might take a week or three



Quote:
When I run rpm command, terminal displays
you almost NEVER use "rpm" to install and uninstall software
8 years back YUM was created to install and uninstall software on rpm based distros
RHEL 4.5 and newer

you use YUM

Last edited by John VV; 08-10-2015 at 12:45 PM.
 
Old 08-10-2015, 08:04 PM   #4
smallgorgon
LQ Newbie
 
Registered: Aug 2015
Posts: 2

Original Poster
Rep: Reputation: Disabled
Dear John VV
I'm new with linux, so pls help me to solve this problem.
Now, I can not use rpm for install rpm packet, so for manually reinstall those packet, could you guide me to do?

Regards
 
Old 08-10-2015, 09:29 PM   #5
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
this is the NOT FREE RHEL6
so you DID buy the REQUIRED support contract ?
RIGHT ?

if you did not buy the required contract -- basically you do NOT install anything not on the install dvd

the standard one year contract is $299 per year ( there is a $49 self support one )

if you did not buy the support contract and are NOT going to then do not use RHEL

-- there are NO "if's and's or but's" on that

or


install the FREE clone of the redhat code
CentOS 6.7 or the current 7.1


Quote:
I'm new with linux, so pls help me to solve this problem.
also PLEASE!!! do not spell "please" as "pls"
you learned how to spell please in the FIRST GRADE


if you are not going to reinstall

and if you NEVER!!!! ( VERY IMPORTANT!!! ) ever ran a normal UPDATE

you can use the install dvd to manauly "copy/paste" the contents of the rpm's
to there install locations


but there is one option you might be able to do

pop in the install dvd
and select "UPGRADE an existing OS "

that should reinstall the the things you uninstalled ? maybe ?

Last edited by John VV; 08-10-2015 at 09:31 PM.
 
Old 08-11-2015, 04:14 PM   #6
kauuttt
Member
 
Registered: Dec 2008
Location: Atlanta, GA, USA
Distribution: Ubuntu
Posts: 135

Rep: Reputation: 26
My 2 cents:
If its a debian based distro you wont have rpm. What distro are you using?
If its a debian distro try pkgtool or setup to install packages. You could also try apt-get install rpm
 
Old 08-11-2015, 06:06 PM   #7
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by kauuttt View Post
If its a debian based distro
What? Better read what it says as he clearly showed us he's using a RHEL kernel...


Quote:
Originally Posted by smallgorgon View Post
I'm new with linux, so pls help me to solve this problem.
Note you didn't answer any questions asked. That is not a good thing.


Quote:
Originally Posted by smallgorgon
Pls help me to install rpm command again ( without reinstall OS)
Boot the system with the installer CD in rescue mode then either "repair" the installation or manually install RPM. You really should read the basic user and admin documentation your Linux distribution provides and think before you do (though that should be obvious you you now ;-p).
 
Old 08-12-2015, 10:48 AM   #8
auge
Member
 
Registered: May 2002
Location: Germany
Distribution: CentOS, Debian, LFS
Posts: 100
Blog Entries: 1

Rep: Reputation: Disabled
I do not get the problems here. He just needs to "copy in" an el6-rpm-binary and then force-install a fitting "rpm"-rpm-package with this. This should take less than a minute! After that he has rpm and access to his rpm-db again and can repair the rest in a proper way.
 
  


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
[SOLVED] rpm command and yum command not found Joaquin Red Hat 28 10-28-2020 10:54 AM
rpm command not found mickey_ice Linux - Software 10 04-20-2007 05:37 AM
rpm: command not found in CentOS GavB Linux - Distributions 8 03-25-2007 06:40 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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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