LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 09-30-2012, 08:15 AM   #1
parian66
LQ Newbie
 
Registered: Sep 2012
Posts: 25

Rep: Reputation: Disabled
YUM and RPM dose not do any thing!


Hi
i have a bad problem. when i run 'yum' or 'rpm' nothing happen.
can any one help me?

[root@armansoft apache-tomcat-7.0.25]# yum
[root@armansoft apache-tomcat-7.0.25]# rpm
[root@armansoft apache-tomcat-7.0.25]#
 
Old 09-30-2012, 08:29 AM   #2
mennohellinga
Member
 
Registered: Jun 2012
Location: Netherlands
Distribution: Archlinux
Posts: 72

Rep: Reputation: 38
try
Code:
yum install vim
and see what happens or just rtfm.
Code:
man yum
 
Old 09-30-2012, 08:37 AM   #3
parian66
LQ Newbie
 
Registered: Sep 2012
Posts: 25

Original Poster
Rep: Reputation: Disabled
when i try
Code:
yum install vim
nothing happened. but when i try
Code:
man yum
the yum's help will be show.
 
Old 09-30-2012, 08:43 AM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,653
Blog Entries: 2

Rep: Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095
yum and rpm are commandline programs to install/remove/update packages. They will not show up a GUI or something similar, you have to use them as commands with options.
 
Old 09-30-2012, 08:46 AM   #5
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729
Please give us some context---what version of Linux are you using? Is this a new installation?

Did you switch to the root account using "su"? If so, try "su -"
 
Old 09-30-2012, 08:59 AM   #6
parian66
LQ Newbie
 
Registered: Sep 2012
Posts: 25

Original Poster
Rep: Reputation: Disabled
i use 'CentOS release 6.2 (Final)' and i logged in as 'root';
Code:
[root@armansoft apache-tomcat-7.0.25]# cat /etc/*release
CentOS release 6.2 (Final)
CentOS release 6.2 (Final)
CentOS release 6.2 (Final)
[root@armansoft apache-tomcat-7.0.25]#
 
Old 10-01-2012, 06:29 AM   #7
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729
Can you find the "yum" command in the directories?---e.g.
Code:
find / -name "yum*"
Once you find the program, then check to see if the directory is in your $PATH:
Code:
echo $PATH

Last edited by pixellany; 10-01-2012 at 06:31 AM.
 
Old 10-01-2012, 06:56 AM   #8
parian66
LQ Newbie
 
Registered: Sep 2012
Posts: 25

Original Poster
Rep: Reputation: Disabled
yes, "yum" is exists.
Code:
[root@armansoft ~]# find / -name "yum*"
...
/usr/bin/yum-debug-dump
/usr/bin/yum-groups-manager
/usr/bin/yum-debug-restore
/usr/bin/yum
/usr/bin/yum-config-manager
/usr/bin/yum-builddep
/usr/bin/yumdownloader
...
[root@armansoft ~]# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/usr/java/jdk1.7.0_02/bin:/root/bin
 
Old 10-01-2012, 08:02 AM   #9
Ginola
Member
 
Registered: Sep 2012
Location: UK
Distribution: CentOS, RHEL
Posts: 56

Rep: Reputation: Disabled
what does "yum repolist" and "yum --version" return?
 
Old 10-01-2012, 08:08 AM   #10
parian66
LQ Newbie
 
Registered: Sep 2012
Posts: 25

Original Poster
Rep: Reputation: Disabled
Unhappy

nothing
Code:
[root@armansoft apache-tomcat-7.0.25]# yum repolist
[root@armansoft apache-tomcat-7.0.25]# yum --version
[root@armansoft apache-tomcat-7.0.25]#
Quote:
Originally Posted by Ginola View Post
what does "yum repolist" and "yum --version" return?
 
Old 10-01-2012, 08:24 AM   #11
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729
This is weird.....

Can you run other commands with no issues?

Just for completeness, CD into /usr/bin and run "./yum --version" (no quotes). Using "./" forces the system to use the local directory and not look in $PATH.

If you can really run YUM and have it just come back empty with no error message or such, then that strikes me as bad design.
 
Old 10-01-2012, 08:27 AM   #12
Ginola
Member
 
Registered: Sep 2012
Location: UK
Distribution: CentOS, RHEL
Posts: 56

Rep: Reputation: Disabled
what does "which yum" return?
 
Old 10-01-2012, 08:36 AM   #13
parian66
LQ Newbie
 
Registered: Sep 2012
Posts: 25

Original Poster
Rep: Reputation: Disabled
nothing happened.
Code:
[root@armansoft /]# cd /usr/bin
[root@armansoft bin]# ./yum --version
[root@armansoft bin]#
Quote:
Originally Posted by pixellany View Post
This is weird.....

Can you run other commands with no issues?

Just for completeness, CD into /usr/bin and run "./yum --version" (no quotes). Using "./" forces the system to use the local directory and not look in $PATH.

If you can really run YUM and have it just come back empty with no error message or such, then that strikes me as bad design.
 
Old 10-01-2012, 08:40 AM   #14
parian66
LQ Newbie
 
Registered: Sep 2012
Posts: 25

Original Poster
Rep: Reputation: Disabled
Code:
[root@armansoft bin]# which yum
/usr/bin/yum
[root@armansoft bin]#
Quote:
Originally Posted by Ginola View Post
what does "which yum" return?
 
Old 10-01-2012, 08:48 AM   #15
Ginola
Member
 
Registered: Sep 2012
Location: UK
Distribution: CentOS, RHEL
Posts: 56

Rep: Reputation: Disabled
I would re-install yum off the OS DVD... or choose yum from one of the following sites returned from: http://mirrorlist.centos.org/?releas...x86_64&repo=os

---------- Post added 10-01-12 at 01:48 PM ----------

Quote:
Originally Posted by Ginola View Post
I would re-install yum off the OS DVD... or choose yum from one of the following sites returned from: http://mirrorlist.centos.org/?releas...x86_64&repo=os
that is assuming you are using 64bit, ok?
 
  


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 remove rpm --> how to reinstall rpm npubudu Linux - Software 5 01-25-2007 09:08 AM
Why -bash: rpm: command not found??? Also an rpm/yum Q? vbtalent Debian 6 01-23-2006 05:55 PM
yum version yum-2.0.5-0.9.2.legacy.noarch.rpm master Red Hat 6 05-13-2005 04:03 PM
i need some help with this apt and yum thing amarillo Fedora 9 10-06-2004 01:04 AM
RPM Problem... What the hell is wrong with this thing? Darx Fedora 9 03-20-2004 01:09 AM


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