Howto use DAG packages with apt or yum
时间:2005-10-28 来源:wenzk
B2. How do I install your GPG key/signature ?
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 http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt
Or alternatively, download this GPG key 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
B3. What is Apt and how do I use it ?
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: /packages/apt/. 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 http://apt.sw.be fedora/3/en/i386 dag rpm http://apt.sw.be fedora/2/en/i386 dag rpm http://apt.sw.be fedora/1/en/i386 dag ### Dag RPM Repository for Red Hat Enterprise Linux rpm http://apt.sw.be redhat/el4/en/i386 dag rpm http://apt.sw.be redhat/el3/en/i386 dag rpm http://apt.sw.be redhat/el2.1/en/i386 dag ### Dag RPM Repository for older Red Hat Linux releases rpm http://apt.sw.be redhat/9/en/i386 dag rpm http://apt.sw.be redhat/8.0/en/i386 dag rpm http://apt.sw.be redhat/7.3/en/i386 dag rpm http://apt.sw.be 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 <name of package>
Or search for software in the local repository meta-data:apt-cache search <keyword> apt-cache show <name of package>
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: /packages/synaptic/B4. What is Yum and how do I use it ?
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: http://apt.freshrpms.net/
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=http://apt.sw.be/fedora/$releasever/en/$basearch/dag gpgcheck=1 enabled=1 [dag] name=Dag RPM Repository for Red Hat Enterprise Linux baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag gpgcheck=1 enabled=1 [dag] name=Dag RPM Repository for older Red Hat Linux baseurl=http://apt.sw.be/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 <name of package>
Or update installed software:yum update <name of package>
Or search for software in the local repository meta-data:yum search <keyword>
Or simply list all available software:yum list available
From time to time you may want to save some diskspace:yum clean