LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   help me to add support! (http://www.linuxquestions.org/questions/linux-newbie-8/help-me-to-add-support-194182/)

ilectrcbob 06-16-2004 10:39 AM

help me to add support!
 
Quote:

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 fedora.us repository as the they work together hand in hand.

# Macromedia Flash plug-in only
apt macromedia http://ruslug.rutgers.edu macromedia/apt/fedora/2 macromedia
# User contributed archives
yum livna-stable http://rpm.livna.org/fedora/2/i386/yum/stable/
apt fedora-us-stable-fc2 http://download.fedora.us 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 http://rpm.livna.org/RPM-LIVNA-GPG-KEY
# rpm --import http://www.fedora.us/FEDORA-GPG-KEY
i have found the following guide here: http://home.gagme.com/greg/linux/fc2-tips.php#other

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

drowstar 06-19-2004 10: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:
Code:

# Macromedia Flash plug-in only
 apt macromedia http://ruslug.rutgers.edu macromedia/apt/fedora/2 macromedia
 # User contributed archives
 yum livna-stable http://rpm.livna.org/fedora/2/i386/yum/stable/
 apt fedora-us-stable-fc2 http://download.fedora.us 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 04:23 PM.