B3. How do I use Apt ?
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: http://dag.wieers.com/packages/apt/. The configuration of Apt is inside the rpmforge-release package.
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: http://dag.wieers.com/packages/synaptic/B4. How do I use Yum ?
Yum is an update-tool written in python. The advantage of Yum is that it is written in Python. The disadvantage is that there are many versions of Yum, and only recent versions work with recent distributions. If you like to use a single tool across all distributions, it's better to use Apt.
Yum is usually already installed if you're running Fedora Core. In case you are using Red Hat Enterprise Linux or an older Red Hat Linux distribution. You can find Yum at: http://dag.wieers.com/packages/yum/
The configuration of Yum is inside the rpmforge-release package. You need to install it yourself.
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
B5. How do I use up2date ?
up2date is a tool written and shipped by Red Hat to update your system with the latest available updates. Starting with Red Hat Enterprise Linux 3 and Fedora Core 1 it can also be used with Apt and Yum repositories. Install up2date from your Red Hat installation and then add one of the following statements to /etc/sysconfig/rhn/sources:
### Dag RPM Repository for Fedora Core yum dag http://apt.sw.be/fedora/3/en/$ARCH/dag yum dag http://apt.sw.be/fedora/2/en/$ARCH/dag yum dag http://apt.sw.be/fedora/1/en/$ARCH/dag ### Dag RPM Repository for Red Hat Enterprise Linux yum dag http://apt.sw.be/redhat/el4/en/$ARCH/dag yum dag http://apt.sw.be/redhat/el3/en/$ARCH/dag
Now start up2date to update your system, by doing:up2date -u
Go there...
http://dag.wieers.com/rpm/FAQ.php#B4
Don
No comments:
Post a Comment