LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 04-19-2005, 10:12 AM   #1
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Rep: Reputation: 56
Yum repository quesiton


Hi folks,

FedoraCore3

I just finished installing a FC3 box, clean installation from CDs. Ran "yum update" afterwards. The OS seems working without problem.

However on evoking
cat /etc/yum.conf
Code:
[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
tolerant=1
exactarch=1
retries=20
obsoletes=1
gpgcheck=1

# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d
No repositories inside.

I was not allowed adding;
Code:
:[base]
name=Fedora Core $releasever - $basearch - Base
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/$releasever/$basearch/os/
mirrorlist=http://fedora.redhat.com/download/mirrors/fedora-core-$releasever
enabled=1

[updates-released]
name=Fedora Core $releasever - $basearch - Released Updates
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/updates/$releasever/$basearch/
mirrorlist=http://fedora.redhat.com/download/mirrors/updates-released-fc$releasever
enabled=1
gpgcheck=1

[development]

name=Fedora Core $releasever - Development Tree
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/development/$basearch/
mirrorlist=http://fedora.redhat.com/download/mirrors/fedora-core-rawhide
enabled=0
On running
# yum update
It complained and I have to remove all of them.

Kindly advise whether I did anything wrong.

Besides I could not find "acrobat reader" from net

# yum search acroread
Code:
Searching Packages:
Setting up Repos
base                      100% |=========================| 1.1 kB    00:00
updates-released          100% |=========================|  951 B    00:00
Reading repository metadata in from local files
base      : ################################################## 2622/2622
updates-re: ################################################## 854/854
No Matches found
Please advise. TIA

B.R.
satimis
 
Old 04-19-2005, 11:03 AM   #2
Hungry ghost
Senior Member
 
Registered: Dec 2004
Posts: 1,222

Rep: Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667
It's strange there are no repositories in yum.conf. Anyway you can rewrite the default yum.conf with the one that coantains livna repos which are faster. Here's the link . (It's safe, don't worry). Also you can install yum extender , which is a gui frontend for yum; it's easy to use and allows you to use lots of different repositories.
 
Old 04-19-2005, 11:06 AM   #3
Hungry ghost
Senior Member
 
Registered: Dec 2004
Posts: 1,222

Rep: Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667
Ahh, by the way, if you want to check updates you have to do this as root:
Code:
yum check-update
Ifyou want to check all available packages:
Code:
yum list available
 
Old 04-19-2005, 11:25 AM   #4
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Hi odiseo77,

Tks for your advice.

The strange thing here is I can run as root

# yum update

without repositories inside /etc/yum.conf

It upgrade the OS including the 'kernel'

$ uname -a
Code:
Linux localhost.localdomain 2.6.11-1.14_FC3 #1 Thu Apr 7 19:23:49 EDT 2005 i686athlon i386 GNU/Linux
B.R.
satimis
 
Old 04-19-2005, 01:50 PM   #5
Hungry ghost
Senior Member
 
Registered: Dec 2004
Posts: 1,222

Rep: Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667
Well, for your first post, it seems there are the default repositories in /etc/yum.conf. I haven't run "yum update" the way you said, (I always run "yum update <package_name>"). Maybe it updated all the packages you have installed?? Run "yum check-update", if you see no packages so it updatedt all the packages; or maybe without parameters it just updates the kernel?? I'm not sure.
 
Old 04-19-2005, 02:23 PM   #6
snarkout
Member
 
Registered: Apr 2005
Location: The Land Of Entrapment
Posts: 77

Rep: Reputation: 15
Try adding each repository as a seperate file in /etc/yum.repos.d. You may have to import the GPG keys for these repos as well (rpm --import /path/to/gpg/key) if you haven't done this already.
 
Old 04-19-2005, 08:24 PM   #7
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Hi snarkout,

Tks for your advice.

Quote:
Try adding each repository as a seperate file in /etc/yum.repos.d.
They are already there.

# ls /etc/yum.repos.d/
Code:
fedora-devel.repo  fedora-updates.repo
fedora.repo        fedora-updates-testing.repo
immediate after installation of FC3 completed. On FC2 they are retained in /etc/yum.conf

Quote:
You may have to import the GPG keys for these repos as well (rpm --import /path/to/gpg/key) if you haven't done this already.
You are right. On FC2 I have to import the key of each repository as listed on

http://www.fedorafaq.org/#installsoftware
Q1 - Problems and Their Solutions

But the strange thing happened here was I can run

# yum update
straight forwards without completing this step immediate after installing FC3 finished. It upgraded all packages installed on the OS

Is it necessary to run this step again?

B.R.
satimis
 
Old 04-19-2005, 08:51 PM   #8
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Hi odiseo77,

Quote:
Well, for your first post, it seems there are the default repositories in /etc/yum.conf.
No. /etc/yum.conf is an empty file.

They are retained as separate files
# ls /etc/yum.repos.d/
Code:
fedora-devel.repo  fedora-updates.repo
fedora.repo        fedora-updates-testing.repo
If I need adding further repository, whether I have to follow this arrangement adding it as separate file?

Quote:
I haven't run "yum update" the way you said, (I always run "yum update <package_name>"). Maybe it updated all the packages you have installed??
Yes it upgraded all packages installed on the OS.

Quote:
Run "yum check-update", if you see no packages so it updatedt all the packages; or maybe without parameters it just updates the kernel?? I'm not sure.
Noted with tks

B.R.
satimis
 
Old 04-20-2005, 04:10 PM   #9
snarkout
Member
 
Registered: Apr 2005
Location: The Land Of Entrapment
Posts: 77

Rep: Reputation: 15
yum.conf should not be a zero length file. It should contain what you had posted in your first post:

cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
tolerant=1
exactarch=1
retries=20
obsoletes=1
gpgcheck=1

# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d

If you were able to run "yum update" as root, then you should be fine. It sounds like the package you named doesn't exist in any of your repositories. Yes - if you need to add another repository, the best way to do it is add another file to the /etc/yum.repos.d directory.

Last edited by snarkout; 04-20-2005 at 04:17 PM.
 
Old 04-20-2005, 05:38 PM   #10
Hungry ghost
Senior Member
 
Registered: Dec 2004
Posts: 1,222

Rep: Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667
Well I don't know how to retrieve the default /etc/yum.conf, all I can suggest you is to use livna's yum.conf which is safe and fast and has the same packages that the default yum.conf has. All you have to do is download it from the previous link and copy it in /etc. This way you'll overwrite your default yum.conf and get the livna repositories. (That's what I did and it works fine for me). You can also download yum extender which is a GUI frontend for yum and uses lots of repositories (including the default yum.conf repositories, livna repositories and others). With yum extender you can select which repositories you want to use, if you find it more secure. I hope this helps you.
 
Old 04-21-2005, 07:44 AM   #11
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Hi odiseo77,

Quote:
Well I don't know how to retrieve the default /etc/yum.conf, all I can suggest you is to use livna's yum.conf........
I performed following steps
# touch /etc/yum.repos.d/livna.repo

copied
Code:
[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 ##
###################

[extras]
name=Fedora Extras - $releasever - $basearch
baseurl=http://fr2.rpmfind.net/linux/fedora/extras/$releasever/$basearch/
  http://mirrors.kernel.org/fedora/extras/$releasever/$basearch/
  http://mirror.hiwaay.net/redhat/fedora/linux/extras/$releasever/$basearch/
  http://www.mirrorservice.org/sites/d.../linux/extras/$releasever/$basearch/
#    http://download.fedora.redhat.com/pu.../linux/extras/$releasever/$basearch/
gpgcheck=0
gpgkey=http://download.fedora.redhat.com/pub/fedora/linux/extras/RPM-GPG-KEY-Fedora-Extras

###############
## 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/RPMS.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...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/JPac...6/generic/free
  http://sunsite.informatik.rwth-aache...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-aache...ge/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=0
#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=0
#gpgcheck=1

[dries]
name=Dries APT/YUM Repository
baseurl=http://ftp.freshrpms.net/pub/dag/dries/fedora/linux/$releasever/$basearch/dries/RPMS/
  http://mirrors.ircam.fr/pub/dag/dries/fedora/linux/$releasever/$basearch/dries/RPMS/
  http://apt.sw.be/dries/fedora/linux/$releasever/$basearch/dries/RPMS/
  http://dries.studentenweb.org/yum/fedora/linux/$releasever/$basearch/dries/RPMS/
enabled=0
#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=0
#gpgcheck=1

[atrpms]
name=ATrpms - Stable
baseurl=http://apt.atrpms.net/fedora/$releasever/en/$basearch/at-stable
  http://ftp-stud.fht-esslingen.de/atr...ms.net/fedora/$releasever/en/$basearch/at-stable
  http://wftp.tu-chemnitz.de/pub/linux/ATrpms/fedora/$releasever/en/$basearch/at-stable
enabled=0
#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/atr...ms.net/fedora/$releasever/en/$basearch/at-testing
enabled=0
#gpgcheck=1

# Warning: Don't enable this "bleeding" repo if you want stable software!
[atrpms-bleeding]
name=ATrpms - Bleeding
baseurl=http://apt.atrpms.net/fedora/$releasever/en/$basearch/at-bleeding
  http://ftp-stud.fht-esslingen.de/atr...ms.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
to /etc/yum.repos.d/livna.repo

Quote:
You can also download yum extender.......
Download "yumex-0.34-1.tla.1.FC3.noarch.rpm" to
~/satimis/Download/

# rpm -Uvh ~/satimis/Download/yumex-0.34-1.tla.1.FC3.noarch.rpm
Code:
Preparing...                ########################################### [100%]
   1:yumex                  ########################################### [100%]
Creating default /etc/yumex.conf
On Konsole ran
# yumex --noauto
to start "yum extender" window

I do the stupid way typing all repositories here
Code:
base (check)
development
updates-released (check)
updates-testing
atrpms
atrpms-bleeding
atrpms-testing
dag
dries
extras
flash
freshrpms
jpackage-fedora
japckage-generic
livna-stable
livna-testing
livna-unstable
newrpms
(remark: I have no idea how to export them to a txt file. Can I display "screenshot" here)

Kindly advise which of the above repositores I have to check/uncheck

A further question, shall I run

Rpm --import RPM-GPG-KEY.dag.txt
rpm --import RPM-GPG-KEY.livna
etc.
where are the URLs

TIA

B.R.
satimis

Last edited by satimis; 04-21-2005 at 07:48 AM.
 
Old 04-21-2005, 09:05 AM   #12
Hungry ghost
Senior Member
 
Registered: Dec 2004
Posts: 1,222

Rep: Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667
Yes, you should import gpg keys. The yumex repos url's are in /etc/yumex.repos.conf. By the way, you can start yumex just by going to menu/system tools (or system)/Yum Extender.
 
Old 04-21-2005, 09:24 AM   #13
Hungry ghost
Senior Member
 
Registered: Dec 2004
Posts: 1,222

Rep: Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667
I forgot, gpgkeys url's are in /etc/yumex.repos.conf as well. To import them just su to root and type: rpm --import <gpgkey_url>, where <gpgkey_url> is the url specified in the gpgkey sections of /etc/yumex.repos.conf. This link might help you.
 
Old 04-21-2005, 02:12 PM   #14
snarkout
Member
 
Registered: Apr 2005
Location: The Land Of Entrapment
Posts: 77

Rep: Reputation: 15
According to the yum.conf you posted, most of your repositories are not enabled. I don't know anything about yumex, so I'm no help there at all. Personally, I use base, freshrpms, dries, atrpms and dag. I also use kde-for-redhat. I generally only use rpmforge repositories, but kde 3.4 is a must IMO, and amaroK is more or less also a must have. Google for dag repositories for more info about rpmforge.
 
Old 04-22-2005, 10:47 PM   #15
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Hi folks,

Lots of thanks for your advice.

After downloaded and installed "yumex-0.34-1.tla.1.FC3.noarch.rpm" my life is much easier now.

Run
# yumex
on Konsole as root to start "Yum Extender" window

Repositories -> Install Repository -> check the repositories to be installed -> Add
The repositories were automatically installed as separate files under /etc/yum.repo.d/

The "base", "update-released ", etc. were automatically installed on /etc/yum.config.

Run Cmd -> selecting; clean/check-upate/, etc. and entering "Yum Parameter" -> Execute

you will be on your way.

One problem still encountered, I was not allowed to check the boxes of "Didier" and "atrpms" on the "Select Active Repositories" window. I have /etc/yum.repos.d/atrpms-stable (a separte yum repository file) Did it matter? Then what about "DIdier"?

Also I have only to run as root
# rpm --import http://ATRPMs.net/RPM-GPG-KEY.atrpms

The rest KEYs are not necessary to import. WHY?

TIA

B.R.
satimis
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
can i create a local yum repository? Sharaz Linux - General 5 01-21-2008 01:51 PM
yum repository problems kpachopoulos Fedora 2 07-28-2005 07:03 PM
Creating A Yum Repository SepitvaOra Linux - Newbie 1 04-04-2005 06:54 AM
YUM: Repository already added, not adding again linmix Linux - Software 2 01-16-2005 11:39 AM
yum repository for redhat 9 csfalcon Linux - Software 1 10-20-2004 11:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 11:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration