-   Linux - Newbie (
-   -   help me to add support! (

ilectrcbob 06-16-2004 09:39 AM

help me to add support!

Add support for other repositories
Fedora comes with a ton of software but there are still plenty of packages of interest to most users that are not included for a variety of reasons. This is where you find the MP3 plug-in and a ton of other packages. A nice side effect of setting it up this way is that the Red Hat Network Alert icon on your GNOME desktop will also let you know of updates to these user contributed packages as well.

Before you add repositories it's probably a good idea to make sure your system is fully up2date first. Adding support is easy, just add the following lines to your /etc/sysconfig/rhn/sources You'll need to add the second line to include the repository as the they work together hand in hand.

# Macromedia Flash plug-in only
apt macromedia macromedia/apt/fedora/2 macromedia
# User contributed archives
yum livna-stable
apt fedora-us-stable-fc2 fedora/fedora/2/i386 stable

For security reasons the packages in these repositories are GPG signed to protect their integrity so you'll need to get and install the public keys:

# rpm --import
# rpm --import
i have found the following guide here:

Can someone explain me the lines i have quoted??
i mean how the heck can i add it to /etc/sysconfig/rhn/sources??

drowstar 06-19-2004 09:38 AM

Hi ilectrcbob!
I mean how the heck can i add it to /etc/sysconfig/rhn/sources??
Short version:
As root, edit the file /etc/sysconfig/rhn/sources and type the lines at the end of the file.

Long version:
Switch to a console
Hit [alt+f1] to get to a text login
log in as root
Enter root as user name, hit enter and enter your administrator (root) password (enter again).
This is what people mean, when they tell you to "become root".
Case you are interested: You can stay in your graphical session and open a terminal. In KDE you would do that this way: [alt+f2]konsole[enter]. (In Gnome you need to find something like it in the menu, because I dont know, what they call it. sorry. the rest is identical.) This will open a nice window with the same features as the terminal. To become root, you need to issue the command su - instead of logging in the normal way. This is probably a better way, but I find it more difficult to explain.

Open the file
Type nano -w /etc/sysconfig/rhn/sources
Add the lines
Use your arrow keys to get to the end of the file and add the lines as they were supplied:

# Macromedia Flash plug-in only
 apt macromedia macromedia/apt/fedora/2 macromedia
 # User contributed archives
 yum livna-stable
 apt fedora-us-stable-fc2 fedora/fedora/2/i386 stable

You will probably need to see these lines while doing that. Hit [alt+f7] to return to your graphical session. [alt+f1] gets you back to the console.
save and close the file
Hit [ctrl+x], tell the program you want to say by hitting [y]
run the listed commands
Apt will complain, if you feed it sources it doesnt know. You need to tell it, that there is no need to worry. For this reason, you need to run these commands:
You can update your apt-tree right away by entering apt-get update or something similar. Check the man pages (man apt-get) for more information.
you're done
enter exit to close your session. Hit [alt+f7] to get back to your graphical session.

By the way, you can easily add more sources by adding lines like that at the same place.

I hope I was able to help you,
- drowstar

All times are GMT -5. The time now is 10:45 AM.