LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 08-13-2013, 12:21 AM   #1
AbidDhanaiser
Member
 
Registered: May 2013
Location: Faisalabad, Pakistan
Posts: 72

Rep: Reputation: Disabled
Rpm command not working


hi , when i use command rpm -i (sw name) , got message that sw is already installed ,
and when i try to rpm -e (sw name) , then get message sw is not installed ,,
whats this
Attached Images
File Type: jpg errotRpm.jpg (37.0 KB, 22 views)
 
Old 08-13-2013, 01:52 AM   #2
John VV
Guru
 
Registered: Aug 2005
Posts: 12,698

Rep: Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687
why the heck are you trying to use rpm to install part of xorg-x11-drv- !!!!

you use yum!!!
yum was created to install packages

Code:
su -
--- the root password ----
yum info xorg-x11-drv-elographics
----- that will give you information on it ----
yum install xorg-x11-drv-elographics
 
Old 08-13-2013, 01:56 AM   #3
AbidDhanaiser
Member
 
Registered: May 2013
Location: Faisalabad, Pakistan
Posts: 72

Original Poster
Rep: Reputation: Disabled
if Yum only use for installing the software (packages) then what is meant of RPM ? and rpm also use for installing r removing or updating the packages in Linux
 
Old 08-13-2013, 02:20 AM   #4
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,458

Rep: Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941
Actually yum uses rpm at a low level, but it let you manage dependencies and online repositories easily. Regarding your issue, when you try to install a RPM package that you've downloaded in the current working directory, you can pass the whole file name as argument to rpm. However, when you try to remove an installed package, you have to omit at least the .rpm suffix, otherwise it search for that exact (entire) name in the RPM database and obviously a package called something.rpm cannot be found.
 
1 members found this post helpful.
Old 08-13-2013, 02:25 AM   #5
John VV
Guru
 
Registered: Aug 2005
Posts: 12,698

Rep: Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687
rpm is used by yum
but the old days of using rpm to install most things ,ended years ago with REHL5 ( centos5 )


yum keeps track of dependencies and installs ( or removes them) as needed
it also takes care of making 100% sure that the rpm you are about to install is COMPATIBLE and it's version is correct

with rpm YOU have to manually check the versions and manually check it is the correct version that can be installed

xorg-x11-drv-??? package MUST MATCH !!!!!! the installed version of Xorg
if it dose not match , you might never be able to reboot the computer ( well a driver might not cause this but other programs WILL )

Last edited by John VV; 08-13-2013 at 02:26 AM.
 
2 members found this post helpful.
Old 08-23-2013, 07:13 AM   #6
AbidDhanaiser
Member
 
Registered: May 2013
Location: Faisalabad, Pakistan
Posts: 72

Original Poster
Rep: Reputation: Disabled
yum command is also not working correctly , please guide me about htis matter , when use yum command then it give error of something like that
resolution repository

what solution for installing gcc , i want to work on C++

Last edited by AbidDhanaiser; 08-23-2013 at 07:14 AM.
 
Old 08-23-2013, 11:07 AM   #7
John VV
Guru
 
Registered: Aug 2005
Posts: 12,698

Rep: Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687
from the terminal window in the first post
you are using centOS
What version ?

please post the output of this
Code:
cat /etc/redhat-release
for cent 6.4 ( or the older 5.9 ) to install gcc -- and all the other required software
Code:
su -
--- your root password when asked for --
yum groupinstall "Development Tools"

please post the full error
"resolution repository" that is not much help
the only thing i can guess from this is that you uninstalled the software repos
or
this is a old and unsupported version of cent
ONLY CentOS 5.9 and 6.4 are supported
 
Old 08-24-2013, 12:11 AM   #8
AbidDhanaiser
Member
 
Registered: May 2013
Location: Faisalabad, Pakistan
Posts: 72

Original Poster
Rep: Reputation: Disabled
cat /etc/redhat-release

shows output
centos release 5.5(final)
Attached Images
File Type: jpg gccError.jpg (52.8 KB, 12 views)
 
Old 08-24-2013, 01:21 AM   #9
John VV
Guru
 
Registered: Aug 2005
Posts: 12,698

Rep: Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687
well you are running an unsupported version
so there are NO repos to install anything from
they have all been moved to the historical archive " The Vault"

you need to upgrade the the very last version in the older 5 series -- CentOS 5.9 --

there should not be any problems but as with anything take precautions FIRST

back up important data to a different drive or dvds
then this should only take about 30 to 45 min ( if you have at lease a 4 to 8 meg cable connection ) faster if it is a 16 meg or better

Code:
su -
yum --releasever=5.9 upgrade
CentOS like RHEL dose NOT upgrade major versions of programs just minor upgrades and backports
so all the current programs should still work just fine

but backup data as a precaution

then when that is done reboot
at that point you should not have any problem installing
---
Code:
yum groupinstall "Development Tools"
-- and ---
yum install xorg-x11-drv-elographics
 
1 members found this post helpful.
Old 08-24-2013, 01:44 AM   #10
AbidDhanaiser
Member
 
Registered: May 2013
Location: Faisalabad, Pakistan
Posts: 72

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by John VV View Post
well you are running an unsupported version
so there are NO repos to install anything from
they have all been moved to the historical archive " The Vault"

you need to upgrade the the very last version in the older 5 series -- CentOS 5.9 --

there should not be any problems but as with anything take precautions FIRST

back up important data to a different drive or dvds
then this should only take about 30 to 45 min ( if you have at lease a 4 to 8 meg cable connection ) faster if it is a 16 meg or better

Code:
su -
yum --releasever=5.9 upgrade
CentOS like RHEL dose NOT upgrade major versions of programs just minor upgrades and backports
so all the current programs should still work just fine

but backup data as a precaution

then when that is done reboot
at that point you should not have any problem installing
---
Code:
yum groupinstall "Development Tools"
-- and ---
yum install xorg-x11-drv-elographics
thanks , i am new in Linux , please would you suggest me that hwo to learn in good way , and which flavor i should use for desktop using , i want to get ride off from Windows, which will be best , Fedora , Ubuntu or any other , thanks for your guidness
 
Old 08-24-2013, 03:20 AM   #11
John VV
Guru
 
Registered: Aug 2005
Posts: 12,698

Rep: Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687
well CentOS / RHEL / ScientificLinux is not the best choice for a desktop install
it can be used , the current is RHEL 6.4

but i DO NOT use my ScientificLinux 6.4 install for everyday use ( except on a 12 year old computer that needs legacy support)
it is not the best tool for that .

i run OpenSUSE 12.3 as my everyday OS

I was running Fedora for many years BUT fedora has it's own set of issues
-- it is a good OS... BUT ....
and it is a big one

It is a VERY fast passed Research and development distro
one that has a NEW release EVERY 6 months
and it is recommended to do a new install every 6 months with each new version
-- this is a lot of work on your part --

OpenSUSE 12.3 is nice , a bit bloated , it is targeted more for office use and home use
And has a longer lifespan that fedora. SUSE supports 2 versions and for 18 months
http://en.opensuse.org/Lifetime

Ubuntu ????? mixed feelings on that. Do a bit of research and make up your own mind on it's privacy polices
I will not use it , but others like it .

Mint Linux , it is a member of the Debian family and a LOT of people like it

( the red hat and Debian families )
CentOS and fedora and SL are part of the red hat group

Mint and Ubuntu are part of the Debian group

Debian , very stable but also not the best for a home desktop
For the office - good ,for running a server VERY GOOD .

and OpenSUSE ( novell)is well ? sort of in the red hat group
it uses the rpm packages but that is about it

Novell is a business competitor of Redhat
SELS11sp3 VS. RHEL 6.4


try a few , then you can decide for your self what you like

Both OpenSUSE 12 and MintLinux 14 are good for "new to linux" users
 
  


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
why rpm command is not working? criacuervo Linux - Newbie 2 08-03-2009 10:36 PM
RPM command is not working (Segmentation fault) josinjosek Linux - Newbie 4 05-12-2009 06:13 AM
--aid switch is not working with rpm command livetoday Red Hat 1 06-15-2006 09:50 AM
java .rpm chmod command not working! barabus Linux - Software 11 06-06-2005 01:52 AM
rpm command not working sanjaya Linux - Software 7 02-20-2004 01:08 AM


All times are GMT -5. The time now is 03:07 AM.

Main Menu
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