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.

FREE DNS Is Back

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


Its GNU/Linuxhelp.net
*******

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
FreshRPMs
NewRPMS
ATrpms

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 apt-version.fr.i386.rpm (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 apt-version.fr.i386.rpm

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

RedHat 9
CODE
# FreshRPMS
rpm http://ayo.freshrpms.net redhat/9/i386 core updates freshrpms

# Dag Apt Repository
rpm http://apt.sw.be redhat/9/en/i386 dag

#newrpms.sunsite.dk
rpm http://newrpms.sunsite.dk/apt/ redhat/en/i386/9.0 newrpms

#ATrpms
rpm http://apt.physik.fu-berlin.de redhat/9/en/i386 at-stable

-------------------
Fedora Core 1
CODE
# FreshRPMS
rpm http://ayo.freshrpms.net fedora/linux/1/i386 core updates freshrpms

# Dag Apt Repository
rpm http://apt.sw.be redhat/fc1/en/i386 dag

#newrpms.sunsite.dk
rpm http://newrpms.sunsite.dk/apt/ redhat/en/i386/fc1 newrpms

#ATrpms
rpm http://apt.physik.fu-berlin.de fedora/1/en/i386 at-stable

------------------
Fedora Core 2
CODE
# FreshRPMS
rpm http://ayo.freshrpms.net fedora/linux/2/i386 core updates freshrpms

# Dag Apt Repository
rpm http://apt.sw.be redhat/fc2/en/i386 dag

#newrpms.sunsite.dk
rpm http://newrpms.sunsite.dk/apt/ redhat/en/i386/fc2 newrpms

#ATrpms
rpm http://apt.physik.fu-berlin.de 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:

CODE
Reading Package Lists... Done
Building Dependency Tree... Done
Package kernel is a virtual package provided by:
 kernel-smp#2.4.22-1.2199.nptl_52.rhfc1.at 2.4.22-1.2199.nptl_52.rhfc1.at
 kernel-BOOT 2.4.22-1.2199.nptl_52.rhfc1.at
 kernel#2.4.22-1.2199.nptl_52.rhfc1.at 2.4.22-1.2199.nptl_52.rhfc1.at
 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, 2.4.22-1.2199.nptl_52.rhfc1.at). 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
hughesjr@linuxhelp.net
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
 
Start new topic
Replies
Corey
post Nov 22 2004, 09:18 AM
Post #2


Its GNU/Linuxhelp.net
*******

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) Linuxhelp.ca Administrator
cquilliam-AT-gmail-dot-com

Want to help out Linuxhelp.net? 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

Posts in this topic


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: 20th October 2017 - 10:21 PM