Chinaunix首页 | 论坛 | 博客
  • 博客访问: 7739572
  • 博文数量: 637
  • 博客积分: 10265
  • 博客等级: 上将
  • 技术积分: 6165
  • 用 户 组: 普通用户
  • 注册时间: 2004-12-12 22:00
文章分类

全部博文(637)

文章存档

2011年(1)

2010年(1)

2009年(3)

2008年(12)

2007年(44)

2006年(156)

2005年(419)

2004年(1)

分类: LINUX

2005-10-28 08:53:57


Apt, Yum or up2date may require that a GPG key is installed. Please install the key as root before running any of these tools. As root, do the following:

rpm --import

Or alternatively, download and install it as root by doing:

rpm --import RPM-GPG-KEY.dag.txt

You can see a list of install keys by doing:

rpm -q gpg-pubkey --qf "%{ summary } -> %{ version }-%{ release } "

The fingerprint of my key is: 6b8d79e6-3f49313d


Apt originally was developed by the Debian project to work together with DEB packages. Since there are not many functional differences between RPM and DEB packages, Conectiva ported Apt to use RPM.

To install Apt, download the latest package for your distribution from: . This will make sure your Apt is configured properly.

However, in case you already have Apt installed, please add one of the following statements to /etc/apt/sources.list.d/dag.list:

### Dag RPM Repository for Fedora Core rpm fedora/3/en/i386 dag rpm fedora/2/en/i386 dag rpm fedora/1/en/i386 dag ### Dag RPM Repository for Red Hat Enterprise Linux rpm redhat/el4/en/i386 dag rpm redhat/el3/en/i386 dag rpm redhat/el2.1/en/i386 dag ### Dag RPM Repository for older Red Hat Linux releases rpm redhat/9/en/i386 dag rpm redhat/8.0/en/i386 dag rpm redhat/7.3/en/i386 dag rpm redhat/6.2/en/i386 dag

If you've done that, the rest is simple. Update the local repository meta-data by doing:

apt-get update

You can upgrade your system with the latest packages with:

apt-get upgrade

And finally you can add new software by typing:

apt-get install

Or search for software in the local repository meta-data:

apt-cache search apt-cache show

From time to time you may want to save some diskspace:

apt-get clean

Remember to update your local repository often before upgrading or installing software, so that you can enjoy the latest and greatest.

Some people rather use a graphical program to select and install packages. Apt has a nifty graphical front-end, called Synaptic. You can install it by doing:

apt-get install synaptic

Or download it from:


Yum is an update-tool written in python. It is younger than Apt, and still lacks some advanced features like pinning and scripting. It also requires at least 128MB RAM to work properly and doesn't have a graphical front-end yet.

You can download Yum from the Freshrpms repository, at:

If you've installed Yum, please add one of the following sections to /etc/yum.conf (or, when available, as: /etc/yum.repos.d/dag.repo)

[dag] name=Dag RPM Repository for Fedora Core baseurl=/fedora/$releasever/en/$basearch/dag gpgcheck=1 enabled=1 [dag] name=Dag RPM Repository for Red Hat Enterprise Linux baseurl=/redhat/el$releasever/en/$basearch/dag gpgcheck=1 enabled=1 [dag] name=Dag RPM Repository for older Red Hat Linux baseurl=/redhat/$releasever/en/$basearch/dag gpgcheck=1 enabled=1

If you've done that, the rest is simple. Upgrade your system by doing:

yum update

You can add new software by typing:

yum install

Or update installed software:

yum update

Or search for software in the local repository meta-data:

yum search

Or simply list all available software:

yum list available

From time to time you may want to save some diskspace:

yum clean

阅读(2002) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~