[root@localhost rar]# yum update
Loading "installonlyn" plugin
Setting up Update Process
Setting up repositories
Could not retrieve mirrorlist http://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-fc6&arch=i386 error was
[Errno 4] IOError:
Error: Cannot find a valid baseurl for repo: updates
是不是我没安装关于YUM的什么? 那要怎样才能使用YUM?


Summerserenity 于 2007-05-17 19:55:09发表:
转自:The Unofficial Fedora FAQ
Configuring Yum
Here's how to configure your yum:
1. Open a Terminal.
2. Become root:
su -
3. Now, install my yum configuration (Updated 03 Feb 2007), using this command:
rpm -Uvh http://www.fedorafaq.org/yum http://rpm.livna.org/livna-release-6.rpm
NOTE: The yum configuration provided here is updated from time to time, for various reasons.
Using Yum
If you have graphical access to your desktop, you can access yum by going to the "Applications" menu and choosing "Add/Remove Software." (It is called "pirut" when you access it graphically.)
However, often people want to use yum at the command line. To use yum, become root, and then you can use the following commands:
* To see a list of available software:
yum list available
* To install some software, you type:
yum install packagename
* To update some software, you type:
yum update packagename
If you leave out "packagename" yum will update all your software.
* To see what updates are available, you can do:
yum check-update
* To search for a package, you can do:
yum search word
For more info about yum, see the yum project page. (Thanks to Ron Kuris for this tip.)
To get yum through a proxy, see the Fedora documentation about yum and proxies.
Installing Software Without Yum
To install an RPM file that you downloaded outside of yum, open up a terminal, and as root do:
rpm -Uvh filename.rpm