Find the answer to your Linux question:
Results 1 to 6 of 6
How can i find the default repository directory ?? one of the reasons why i need to know this is so that i can place any new downloaded .rpm files ...
  1. #1
    Just Joined!
    Join Date
    Feb 2011
    Posts
    14

    [SOLVED] Finding the default repository directory for yum

    How can i find the default repository directory ?? one of the reasons why i need to know this is so that i can place any new downloaded .rpm files in that directory and then use
    > yum install filename
    to install that package ..
    (does that make sense ?? is that a good idea ??)
    I just installed a new linux and i am trying to get familiar with the enviroment. I know that yum gets the source directories from /etc/yum.repos.d but i really couldnt understand the files in there. Any advice would be appreciated

  2. #2
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,096
    You can look in the following directory for the cache of packages installed by yum:

    /var/cache/yum/

    Note that you'll need root permissions to manipulate files in that directory.
    oz

    new members/users: read this first | new member faq
    no private messages requesting computer support - post them on the forums!
    please use the "report post" button to alert our forum admins to problematic posts rather than responding to them yourself.

  3. #3
    Just Joined!
    Join Date
    Feb 2011
    Posts
    14
    @ozar thanks for taking the time to help me out
    inside /var/cache/yum
    there is only a folder called i386 which contains a single folder called 14 and that contains a folder called rpmfusion-free this folder contains a lot of xml files what does that mean any help pleae

  4. #4
    Just Joined!
    Join Date
    Feb 2007
    Location
    Cobleskill, NY
    Posts
    51
    Quote Originally Posted by johnacandy View Post
    @ozar thanks for taking the time to help me out
    inside /var/cache/yum
    there is only a folder called i386 which contains a single folder called 14 and that contains a folder called rpmfusion-free this folder contains a lot of xml files what does that mean any help pleae
    There is no single directory where the files are kept. It creates a tree with /var/cache/yum/{arch}/{release}/{repository}/packages

    arch = i386, release = 14 for Fedora 14, repository = rpmfusion-free or updates, fedora etc.

    The packages directory would contain the RPMs. The xml files contain the yum meta data (repository information.)

    Also by default Fedora doesn't save the files installed.

    If you want the RPMs (and DRPMs for presto delta-rpms) saved you'll need to change that in the /etc/yum.conf file.

    What you are proposing to do won't work as you are expecting. You are better off using the localinstall option for yum.
    Last edited by ProfTheory; 04-25-2011 at 01:25 AM. Reason: corrections & additions

  5. #5
    Linux Enthusiast Mudgen's Avatar
    Join Date
    Feb 2007
    Location
    Virginia
    Posts
    623
    For downloaded rpms, you can use "yum localinstall <filename>". The file can be in any folder. I keep them in /root/rpm, just to have them in one place. "yum install" is going to look in the configured repos, not on the local system.

    You'll need either to install the gpg signing key for the rpm package, or use "yum --nogpgcheck localinstall <filename>".

  6. #6
    Linux Newbie
    Join Date
    Oct 2008
    Posts
    140
    Rather then ask which repo is "default" ask which ones do I have, and which ones do I need? To find out which ones are enabled, type
    Code:
    yum repolist
    Rpmfusion contains stuff that can't be in the official Fedora repos, for any of several reasons, licensing is one, some of the packages in Rpmfusion are not free as in speech, think multimedia codecs, for instance.

    Livna was formerly used for one package only, libdvdcss, required for DVD decryption. These days Livna is down a lot and there is no need to update that one package, (and it is unmaintained), so get it from atrpms and then use yum to erase atrpms repo from your computer.

    You'll probably want Adobe's repo for flash and maybe Google's for chrome or Google Earth. Other then that you should NOT enable others, unless you have specific needs. There is a repo, for instance, with scientific software. Using Atrpms and others with Fedora and Rpmfusion is almost guaranteed to case problems. The Fedora and Rpmfusion repos are designed to work with each other.

    You might be interested in a script called FedoraPlus, which can set these things up for you, or you can do it yourself with help from MjmWired

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...