LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (http://www.linuxquestions.org/questions/red-hat-31/)
-   -   YUM and RPM dose not do any thing! (http://www.linuxquestions.org/questions/red-hat-31/yum-and-rpm-dose-not-do-any-thing-4175429721/)

parian66 09-30-2012 07:15 AM

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]#

mennohellinga 09-30-2012 07:29 AM

try
Code:

yum install vim
and see what happens or just rtfm.
Code:

man yum

parian66 09-30-2012 07:37 AM

when i try
Code:

yum install vim
nothing happened. but when i try
Code:

man yum
the yum's help will be show.

TobiSGD 09-30-2012 07:43 AM

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.

pixellany 09-30-2012 07:46 AM

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

parian66 09-30-2012 07:59 AM

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]#


pixellany 10-01-2012 05:29 AM

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

parian66 10-01-2012 05:56 AM

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


Ginola 10-01-2012 07:02 AM

what does "yum repolist" and "yum --version" return?

parian66 10-01-2012 07:08 AM

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 (Post 4793903)
what does "yum repolist" and "yum --version" return?


pixellany 10-01-2012 07:24 AM

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.

Ginola 10-01-2012 07:27 AM

what does "which yum" return?

parian66 10-01-2012 07:36 AM

nothing happened.
Code:

[root@armansoft /]# cd /usr/bin
[root@armansoft bin]# ./yum --version
[root@armansoft bin]#

Quote:

Originally Posted by pixellany (Post 4793920)
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.


parian66 10-01-2012 07:40 AM

Code:

[root@armansoft bin]# which yum
/usr/bin/yum
[root@armansoft bin]#

Quote:

Originally Posted by Ginola (Post 4793923)
what does "which yum" return?


Ginola 10-01-2012 07:48 AM

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 (Post 4793944)
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?


All times are GMT -5. The time now is 10:09 AM.