PDA

View Full Version : Yum Repo's and Synaptic



Dayson
10th January 2005, 02:29 AM
Okay I'm fairly new to linux and have almost no experience. I want to install synaptice and update and add some repositories. As of right now I followed most of this guy's post http://fedoraforum.org/forum/showthread.php?t=27279&highlight=yum and http://www.fedoraforum.org/forum/showthread.php?t=26997&highlight=yum except install the Installing the gpg keys cause I have no idea how to do that. Anywho I've done that and I tried su+pass, yum install synaptic and got nothing. Can someone help me out and give me some more .repo files so I can get yum working right? Thanks for taking the time to read this and hope someone can help.

terr9898
10th January 2005, 03:00 AM
Synaptic is the front end for apt-get. So from a cmdline, as the root user, type 'yum install apt-get'
Then use 'apt-get install synaptic'

Also, installing the GPG keys is really easy. Again as the root user, type
rpm --import <locate of GPG key>
For example, http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt

Dayson
10th January 2005, 03:51 AM
When I do 'yum install apt-get' I get nothing, says nothing is found. I think I need to chage or update my repo files and or yum.conf file cause no matter what yum cant find anything as it is.

Mtnear
10th January 2005, 04:57 AM
1. Download the yum.conf from http://www.fedorafaq.org/samples/yum.conf (Or just copy mine that I've copied in below)
2. Comment out everything for fedora.us and livna.org by putting a "#" before each line (This is my setup, and my preference) Here's mine:
================================================== ===
# This is a yum.conf for Fedora Core 3.
# It uses Fedora mirrors to make things faster,
# since the main Red Hat Fedora site is pretty slow.
#
# Also, if you look down in the "Alternate Repositories"
# section, you'll notice some disabled repositories.
# If you want to use them, just do:
#
# yum --enablerepo <reponame> <command>
#
# Where <reponame> is the name of the repo, and <command>
# is your normal yum command.
#
# Authors:
# Maxwell Kanat-Alexander (max at fedorafaq dot org)
# Sindre Pedersn Bjørdal (foolish at fedorafaq dot org)
#
# Date: 22 November 2004
#
# Changes
# -------
# 26 November 2004
# + Updated ATrpms per Axel Thimm's request.
# 22 November 2004
# + Updated for Fedora Core 3
# 04 November 2004
# + Fixed and checked-over for publishing
# 17 July 2004 (Sindre)
# + Replaced Base, debug, updates-released and updates mirrors with faster ones.
# + Added the official servers to base and updates, commented of course.
# + Tested all non-commented parts, everything works.
# 29 May 2004
# + Tested commented-out parts: all work except subpop.net
# + Livna and NewRPMs mirrors!
# 22 May 2004
# + Incorporated Darrenn's fixes for Fedora Core 2!
# + Commented-out parts may still not work properly
# 29 Feb 2004
# + Updated a lot of mirrors, for speed
# + Fixed one ATrpms mirror
# + Added Dries and spc, two more FreshRPMs-compatible repos
# 9 Jan 2004
# + Updated ATrpms for their new directory structure.
# 31 Dec 2003
# + Added JPackage, commented out
# + Standard Red Hat Fedora Core sites commented-out by default
# + Removed dulug from debug, since it doesn't have debug
# 29 Dec 2003
# + Added mirrors for the flash-plugin, since some go down.
# + Added base-debuginfo, commented out

[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=fedora-release
tolerant=1
exactarch=0
# Added this because some mirrors go down and then retying takes forever.
retries=1
timeout=10

# Basic Repos are in /etc/yum.conf.d/ #

###################
## Fedora Extras ##
###################

# Temporarily set to FC2 because Fedora.US is not yet ready for FC3.

#[fedora-stable]
#name=Fedora.us Extras (Stable)
#baseurl=http://fedora.quicknet.nl/fedora/fedora/2/$basearch/#RPMS.stable
# http://mirrors.usc.edu/pub/linux/fedora/fedora/fedora/2/$basearch/RPMS.stable
# http://fedora.mirror.sdv.fr/fedora/fedora/$releasever/2/#RPMS.stable
# http://download.fedora.us/fedora/fedora/$releasever/2/#RPMS.stable
#gpgcheck=1

#[fedora-unstable]
#name=Fedora.us Extras (Unstable)
#baseurl=http://mirrors.usc.edu/pub/linux/fedora/fedora/#fedora/2/$basearch/RPMS.unstable
# http://fedora.mirror.sdv.fr/fedora/fedora/2/$basearch/#RPMS.unstable
# http://fedora.quicknet.nl/fedora/fedora/2/$basearch/#RPMS.unstable
http://mirrors.kernel.org/fedora.us/fedora/fedora/2/$basearch/RPMS.unstable
http://download.fedora.us/fedora/fedora/2/$basearch/#RPMS.unstable
#gpgcheck=1

#[fedora-testing]
#name=Fedora.us Extras (Testing)
#baseurl=http://download.fedora.us/fedora/fedora/2/$basearch/#RPMS.testing
# http://fedora.quicknet.nl/fedora/fedora/2/$basearch/#RPMS.testing
# http://fedora.mirror.sdv.fr/fedora/fedora/2/$basearch/#RPMS.testing
# http://mirrors.kernel.org/fedora.us/fedora/fedora/2/$basearch/RPMS.testing
# http://mirrors.usc.edu/pub/linux/fedora/fedora/fedora/2/$basearch/RPMS.testing
#gpgcheck=1

###############
## Livna.org ##
###############

#[livna-stable]
#name=Livna.org - Fedora Compatible Packages (stable)
#baseurl=http://rpm.livna.org/fedora/$releasever/$basearch/#RPMS.stable
# http://livna.cat.pdx.edu/fedora/$releasever/$basearch/#RPMS.stable
#gpgcheck=1

#[livna-unstable]
#name=Livna.org - Fedora Compatible Packages (unstable)
#baseurl=http://rpm.livna.org/fedora/$releasever/$basearch/#RPMS.unstable
# http://livna.cat.pdx.edu/fedora/$releasever/$basearch/#RPMS.unstable
#gpgcheck=1

#[livna-testing]
#name=Livna.org - Fedora Compatible Packages (testing)
#baseurl=http://rpm.livna.org/fedora/$releasever/$basearch/#RPMS.testing
# http://livna.cat.pdx.edu/fedora/$releasever/$basearch/yum/#testing
#gpgcheck=1


############
# Jpackage #
############

# JPackage is a GREAT repository for Java Software.
# However, you may have to compile some SRPMs to use it,
# so it's commented out by default. See
# <http://mirrors.sunsite.dk/jpackage/1.6/generic/non-free/SRPMS>
# For the SRPMs, and <http://www.jpackage.org/rebuilding.php> for
# the general details.
#
# Note: JPackage IS compatible with the fedora.us repositories.
# You can use JPackage and fedora.us at the same time, without
# any trouble. It's also compatible with the Alternate Repositories,
# for the most part.

[jpackage-generic]
name=JPackage Cross-Platform Packages
baseurl=http://mirrors.sunsite.dk/jpackage/1.6/generic/free
ftp://jpackage.hmdc.harvard.edu/JPackage/1.6/generic/free
http://sunsite.informatik.rwth-aachen.de/ftp/pub/Linux/jpackage/1.6/generic/free
failovermethod=priority
enabled=0
#gpgcheck=1

[jpackage-fedora]
name=JPackage Fedora Packages
baseurl=http://mirrors.sunsite.dk/jpackage/1.6/fedora-$releasever/free
ftp://jpackage.hmdc.harvard.edu/JPackage/1.6/fedora-$releasever/free
http://sunsite.informatik.rwth-aachen.de/ftp/pub/Linux/jpackage/1.6/fedora-$releasever/free
failovermethod=priority
enabled=0
#gpgcheck=1


############################
## Alternate Repositories ##
############################

# To use these repos, either use the --enablerepo
# command-line argument to yum, or change "enabled=0"
# to "enabled=1". Note: Some packagesfrom these repositories
# may conflict with the fedora.us packages. If you use these
# repositories, you may wish to disable the fedora.us and
# livna.org repositories.

[freshrpms]
name=FreshRPMs
mirrorlist=http://ayo.freshrpms.net/fedora/linux/$releasever/mirrors-freshrpms
enabled=1
#gpgcheck=1

[dag]
name=Dag APT Repository
baseurl=http://dag.freshrpms.net/fedora/$releasever/en/$basearch/dag/
http://dag.atrpms.net/fedora/$releasever/en/$basearch/dag/
http://ftp.heanet.ie/pub/freshrpms/pub/dag/fedora/$releasever/en/$basearch/dag/
enabled=1
#gpgcheck=1

[dries]
name=Dries APT/YUM Repository
baseurl=http://dries.studentenweb.org/yum/fedora/linux/$releasever/$basearch/dries/RPMS/
enabled=1
#gpgcheck=1

[newrpms]
name=NewRPMs
baseurl=http://newrpms.sunsite.dk/apt/redhat/en/$basearch/fc$releasever
http://newrpms.atrpms.net/apt/redhat/en/$basearch/fc$releasever
enabled=1
#gpgcheck=1

[atrpms]
name=ATrpms - Stable
baseurl=http://apt.atrpms.net/fedora/$releasever/en/$basearch/at-stable
http://ftp-stud.fht-esslingen.de/atrpms/download.atrpms.net/fedora/$releasever/en/$basearch/at-stable
http://wftp.tu-chemnitz.de/pub/linux/ATrpms/fedora/$releasever/en/$basearch/at-stable
enabled=1
#gpgcheck=1

[atrpms-testing]
name=ATrpms - Testing
baseurl=http://wftp.tu-chemnitz.de/pub/linux/ATrpms/fedora/$releasever/en/$basearch/at-testing
http://apt.atrpms.net/fedora/$releasever/en/$basearch/at-testing
http://ftp-stud.fht-esslingen.de/atrpms/download.atrpms.net/fedora/$releasever/en/$basearch/at-testing
enabled=0
#gpgcheck=1

[atrpms-bleeding]
name=ATrpms - Bleeding
baseurl=http://apt.atrpms.net/fedora/$releasever/en/$basearch/at-bleeding
http://ftp-stud.fht-esslingen.de/atrpms/download.atrpms.net/fedora/$releasever/en/$basearch/at-bleeding
http://wftp.tu-chemnitz.de/pub/linux/ATrpms/fedora/$releasever/en/$basearch/at-bleeding
enabled=0
#gpgcheck=1

###################
## Miscellaneous ##
###################

# Semi-official Macromedia repository containing the flash-plugin rpm.
[flash]
name=macromedia.mplug.org - Flash Plugin
baseurl=http://macromedia.mplug.org/apt/fedora/$releasever
http://sluglug.ucsc.edu/macromedia/apt/fedora/$releasever
http://ruslug.rutgers.edu/macromedia/apt/fedora/$releasever
http://macromedia.rediris.es/apt/fedora/$releasever
enabled=0
#gpgcheck=1
================================================== ==================

3. Set enable = 1 for all of the alternate repositories (You should see that in the above that I've copied in)
4. Import all of the gpg keys for the alternate repos (here's what you need to do for all of the alternate repos that I've enabled in my yum.conf above):

FreshRPMs:
rpm --import http://freshrpms.net/packages/RPM-GPG-KEY.txt
DAG:
rpm --import http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt
ATrpms:
rpm --import http://atrpms.net/RPM-GPG-KEY.atrpms
NewRPMs:
rpm --import http://newrpms.sunsite.dk/gpg-pubkey-newrpms.txt
Dries:
rpm --import http://apt.sw.be/dries/RPM-GPG-KEY.dries.txt

5. Download apt from http://dag.wieers.com/packages/apt/ and install
6. Download synaptic from http://dag.wieers.com/packages/synaptic/ and install
7. Open synaptic and refresh the repositories to update all of the available packages

You should be good to go after that. Let me know if you have any issues so that I can make sure I didn't leave anything out. Hope this helps.

Mtnear
10th January 2005, 04:59 AM
Oh, I forgot to mention that for step 4 (importing the keys), just type the "rpm..." commands in at a terminal prompt.

bob
10th January 2005, 05:05 AM
Don't think you can get apt with yum, although I might be wrong. Here' s a link to an Apt rpm site:
http://apt.freshrpms.net/
You can download the right rpm for your distro and then install it (as root) with
"rpm -Uvh packagename"

After that, follow terr9898's instructions to get Synaptic and the gpg keys.

One more thing, the servers seem to be dead in the water tonight for both apt and yum, so I'd wait until tomorrow before doing anything.

bob
10th January 2005, 05:07 AM
Mtnear, sorry man - didn't see your excellent post until after I had hit the 'post' button.

Mtnear
10th January 2005, 05:16 AM
Bob - no problem dude, thanks for the compliment.

Dayson
10th January 2005, 08:03 PM
Okay thanks a ton! That worked, sorta I guess anyway, now I get an error when I do 'yum update'. Now I have huge amounts of dependency errors, it goes on and on checking Dependency for sometthing like a thousand files like its not seeing anything at all.

Okay I'll just copy some of the last lines so you see what I'm talking about.

--> Processing Dependency: libFLAC.so.4 for package: vorbis-tools
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Package perl-Net-SSLeay.i386 0:1.25-1.1.fc3.rf set to be installed
---> Package python24.i386 0:2.4-2_4.rhfc3.at set to be installed
---> Package libosp4.i386 0:1.5.1-9 set to be installed
--> Running transaction check
--> Processing Dependency: libFLAC.so.4 for package: gstreamer-plugins
--> Processing Dependency: libFLAC.so.4 for package: vorbis-tools
--> Finished Dependency Resolution
Error: Missing Dependency: libgmodule-2.0.so.0 is needed by package gnome-system-monitor
Error: Missing Dependency: libasound.so.2(ALSA_0.9.0rc4) is needed by package pwlib

What do I do?!

F for Fragging
10th January 2005, 09:41 PM
http://stanton-finley.net/fedora_core_3_installation_notes.html

This website is all you need for installing Fedora. I don't use YUM or up2date, I use APT exclusively. YUM is slow...

Dayson
10th January 2005, 10:17 PM
Thanks but I went throw all of that already, followed everything to the word and I still had problems and now I have this new one.

taylor65
10th January 2005, 10:25 PM
Use my how-to on installing synaptic:
ttp://www.fedoraforum.org/forum/showthread.php?t=26997&highlight=setup+average+fc3

Mtnear
10th January 2005, 10:39 PM
Okay, sorry man. I don't use YUM, just Synaptic. That's all I did to get Synaptic working, and I've been installing packages from there without error.

Dayson
11th January 2005, 05:48 AM
Well crap, I still cant figure this stuff out. I just want to have it working case I ever need to use it since apt-get works fine. I think I got an error once but I didnt get to read all of it before it was lost in the massive amount of dependency errors said something like lost lock on /proc/ something I dont know but I think that might have something to do with it if that helps anyone I'd love to figure out how the hell to fix this. Thanks for the responses guys, I need all the help I can get.

Edit heres the warning I was talking about I found it again maybe it will help.

warning: cannot get shared lock on /var/lib/rpm/Packages

owakroeger
11th January 2005, 10:41 AM
warning: cannot get shared lock on ***
That sounds like you might have forgotten to log on as su.
Try su
password
and apt-get install synaptic again.

owa

Mtnear
11th January 2005, 03:44 PM
Dayson, is your goal to use Synaptic or yum for installing packages (or both)? I'm just asking because I didn't do a "yum update" or anything when I was finished with my config above. I just opened Synaptic and hit the "reload" button to refresh the package list. Then I started installing packages. I guess I never went back to using "yum" commands.

Dayson
12th January 2005, 12:48 AM
got it working thanks guys