以下是一个示例教你如何使用sudo来运行root级别的命令:
[mirandam@charon ~]$ du -sh /root
du: `/root’: Permission denied <— Fails!!!
[mirandam@charon ~]$ sudo du -sh /root
163M /root <— Works!!!
注意:如果除去每行命令前的sudo,本页提供的每个命令都能运行,但是这样会要求你必须以’root’的身份登陆,一个可选的使用sudo的方法是在运行一个命令之前,使用su作为root登录.
设置yum
07 November 2007
http://Fedora.RedHat.com/docs/yum/en/
Fedora uses yum to 安装 and update its software. When connected to the internet it will automatically determine application dependancies.
Fedora 使用yum来安装和更新自身的软件。当连接到internet时,它会自动检测程序的依赖关系。
Fedora Repositories
Fedora 软件仓库
Fedora has 2 repositories enabled by default: fedora (the same packages that come on any combination of the CD’s or DVD’s) and updates (updated packages, newer than fedora).
Fedora有两个软件仓库是默认启用的:fedora(与任何CD合集和DVD中的的软件包相同)和updates(获得更新的软件包,新于fedora仓库)
These repositories ’sign’ their RPM files to make sure they are valid when downloaded. Import the GPG keys to these repositories:
这些软件仓库对RPM文件进行了’签名’以确保下载的文件是有效的.导入这些仓库的GPG 密钥:
[mirandam@charon ~]$ sudo rpm –import /etc/pki/rpm-gpg/*
第三方仓库
对于fedora开源政策之外的程序(例如MP3,DVD,MPEG, 二进制驱动程序等等),可以使用第三方仓库.对于这个指南的目的,(几乎)所有需要都能通过Livna软件仓库满足.(注意:Livna仓库和Freshrpms仓库不可并存)
[mirandam@charon ~]$ sudo rpm -ivh http://rpm.livna.org/livna-release-8.rpm
[mirandam@charon ~]$ sudo rpm –import /etc/pki/rpm-gpg/RPM-GPG-KEY-livna
NOTE: installation Prompt
注意:安装提示
Yum下载程序或所请求更新的软件包之后会提示你安装.这有利于初学者追踪系统中发生了什么。在更新中程序也可以同时被卸载。如果你想要yum自动安装下载和实施变更,那么加-y参数(回答”yes”)来运行yum.
# sudo yum -y install application_name
NOTE: 系统的整体更新
如果你运行下面的命令,所有仓库有可用更新的RPM软件包将被实施更新.
[mirandam@charon ~]$ sudo yum update
