Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )

Advanced DNS Management
New ZoneEdit. New Managment.


Sign Up Now
Reply to this topicStart new topic
> How To Use Apt On Redhat / Fedora Core, do updates and new packages
post Oct 23 2004, 06:15 AM
Post #1

Its GNU/

Group: Admin
Posts: 3,433
Joined: 25-July 03
From: Corpus Chrsiti, TX, USA
Member No.: 1,151

I have long used the Dag / NewRPMs / ATrpms / FreshRPMS apt repositories to keep my RedHat and FedoraCore installs updated and to install (and maintain) packages that are not included in the original Distros.

There are 4 sites that work together to maintain a huge list of packages not included with the original installs.

Here are the 4 individual sites:

Dag Apt/Yum RPM repository

How to use APT for RedHat / Fedora

1. Go to the FreshRPMS site and download the apt RPM for you version of RedHat / Fedora. Select your version and download the top file (usually named (the version is different for each version of RedHat / Fedora linux).

2. Open a terminal window (as the root user) and install the package via the command:

rpm -Uvh

3. Edit the file /etc/apt/sources.list and replace the contents with the following (I'll cover RH9, FC1 and FC2)

RedHat 9
# FreshRPMS
rpm redhat/9/i386 core updates freshrpms

# Dag Apt Repository
rpm redhat/9/en/i386 dag
rpm redhat/en/i386/9.0 newrpms

rpm redhat/9/en/i386 at-stable

Fedora Core 1
# FreshRPMS
rpm fedora/linux/1/i386 core updates freshrpms

# Dag Apt Repository
rpm redhat/fc1/en/i386 dag
rpm redhat/en/i386/fc1 newrpms

rpm fedora/1/en/i386 at-stable

Fedora Core 2
# FreshRPMS
rpm fedora/linux/2/i386 core updates freshrpms

# Dag Apt Repository
rpm redhat/fc2/en/i386 dag
rpm redhat/en/i386/fc2 newrpms

rpm fedora/2/en/i386 at-stable

4. After saving the proper sources.list, update the package lists of the software to the latest levels with this command:

apt-get update

5. Next upgrade your installed packages to the latest versions:

apt-get dist-upgrade

6. You can also use apt to search for packages ... like this:

apt-cache search search term

7. You can install packages with the command:

apt-get install package name

8. Prior to using console apt commands, update your reference lists with a apt-get update.

9. There is a GUI for package install and research as well, to get it use the command:

apt-get install synaptic

to run synaptic ... use the command (at the terminal as root) synaptic

10. Whenever you want to update your system, do (I do mine at least once a week):

apt-get update
apt-get dist-upgrade

this will install all updates to all the RPM packages installed by the original system and installed via the 4 site merged repositories.

11. Kernels (and kernel-source {rh9/fc1} ... kernel-sourcecode{fc2}) are different ... they are not updated via the normal apt-get process. You can see which kernel you have installed and what is available with the comamnd:

apt-get install kernel

You will get a list like this:

Reading Package Lists... Done
Building Dependency Tree... Done
Package kernel is a virtual package provided by:
 kernel-smp#2.4.22-1.2199.nptl 2.4.22-1.2199.nptl
 kernel-smp#2.4.22-1.2197.nptl 2.4.22-1.2197.nptl
 kernel-smp#2.4.22-1.2194.nptl 2.4.22-1.2194.nptl
 kernel-smp#2.4.22-1.2188.nptl 2.4.22-1.2188.nptl
 kernel-smp#2.4.22-1.2179.nptl 2.4.22-1.2179.nptl
 kernel-smp#2.4.22-1.2174.nptl 2.4.22-1.2174.nptl
 kernel-smp#2.4.22-1.2140.nptl 2.4.22-1.2140.nptl
 kernel#2.4.22-1.2199.nptl 2.4.22-1.2199.nptl
 kernel#2.4.22-1.2197.nptl 2.4.22-1.2197.nptl [Installed]
 kernel#2.4.22-1.2194.nptl 2.4.22-1.2194.nptl
 kernel#2.4.22-1.2188.nptl 2.4.22-1.2188.nptl
 kernel#2.4.22-1.2179.nptl 2.4.22-1.2179.nptl
 kernel#2.4.22-1.2174.nptl 2.4.22-1.2174.nptl
 kernel#2.4.22-1.2140.nptl 2.4.22-1.2140.nptl
 kernel-smp#2.4.22-1.2115.nptl 2.4.22-1.2115.nptl
 kernel#2.4.22-1.2115.nptl 2.4.22-1.2115.nptl
You should explicitly select one to install.
E: Package kernel is a virtual package with multiple good providers.

(this is from my current FC1 install)
I don't have the latest kernel installed ... so I can install it with the command:

apt-get install kernel#2.4.22-1.2199.nptl

Same for kernel-source and kernel-sourcecode ....

You can also use synaptic to install kernel, kernel-source, and kernel-sourcecode.

Another note about kernels ... ATrpms makes custom kernels. You will know them by .at at the end of the name. (in the above example, Those kernels are specially made, and are not as easy to maintain as the default kernels ... I don't recommend you install the AT kernels unless you are doing so per the instructions on his site, and for a specific reason.

Johnny Hughes
Enterprise Alternatives: CentOS, WhiteBoxEL
Favorite Workstation Distros (in order): CentOS, Gentoo, Debian Sarge, Ubuntu, Mandrake, FedoraCore, Slackware, SUSE
Favorite Server Distros (in order): CentOS, WhiteBoxEL, Debian Sarge, Slackware, Mandrake, FedoraCore, Gentoo, SUSE
Go to the top of the page
+Quote Post
post Nov 22 2004, 09:18 AM
Post #2

Its GNU/

Group: Admin
Posts: 1,254
Joined: 21-September 02
From: St John's, Newfoundland, Canada
Member No.: 3

A few notes to add to this guide:

It is suggested, for stability-sake, that you should setup apt with a freshly installed system, or a system who's RPM database isn't a mess due to previous forces of rpm installs.

Also, this tools is available for SUSE (for which i use), the information can be found here on how to set this up for different versions of SUSE.

Corey Quilliam
(former) Administrator

Want to help out Check out our Linuxhelp Wiki and see if there are some articles you would like to submit!!

Ubuntu 8.04 64-bit - Work Laptop (HP-Compaq NC6400 Core2)
Kubuntu 8.04 64-bit - Desktop (HP m8120n QuadCore)
Ubuntu 6.04 - Server (I'm not upgrading this baby until support runs out in 2012) (Some old POS dell)
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:


RSS Lo-Fi Version Time is now: 18th October 2017 - 05:23 PM