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]# |
try
Code:
yum install vim Code:
man yum |
when i try
Code:
yum install vim Code:
man yum |
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.
|
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 -" |
i use 'CentOS release 6.2 (Final)' and i logged in as 'root';
Code:
[root@armansoft apache-tomcat-7.0.25]# cat /etc/*release |
Can you find the "yum" command in the directories?---e.g.
Code:
find / -name "yum*" Code:
echo $PATH |
yes, "yum" is exists.
Code:
[root@armansoft ~]# find / -name "yum*" |
what does "yum repolist" and "yum --version" return?
|
nothing
Code:
[root@armansoft apache-tomcat-7.0.25]# yum repolist Quote:
|
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. |
what does "which yum" return?
|
nothing happened.
Code:
[root@armansoft /]# cd /usr/bin Quote:
|
Code:
[root@armansoft bin]# which yum Quote:
|
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:
|
All times are GMT -5. The time now is 12:02 AM. |