Find the answer to your Linux question:
Results 1 to 6 of 6
hello guys, I just have a couple rpm questions. I run fedora (11) and just would like a couple questions answered please 1. When I look at a file (in ...
  1. #1
    Just Joined!
    Join Date
    Sep 2009
    Posts
    5

    [SOLVED] some newb rpm questions

    hello guys,
    I just have a couple rpm questions. I run fedora (11) and just would like a couple questions answered please

    1. When I look at a file (in this case 'fedora.repo') in the /etc/yum.repos.d directory, there is a line which says 'enabled=0'
    ...
    enabled=0
    metadata_expire=7d
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch
    Does this mean that this mean that yum does not use this rpm repository when searching for files?

    2. if i manually download an rpm (because i couldnt find it using the current repositories i have), how would i know what programs where installed? and how could i uninstall it? do rpm's write uninstall/install details to some file that i dont know of?

    3. how do i go about adding more repositories to the yum package manager? (so that i can easily search with add/remove software)

    4. Can anyone inform me of some good repositories to add? or where to find some? preferably an up-to-date repository.

    Also, I dont mind using command lines etc. I just find GUIs easier to work with.

  2. #2
    Blackfooted Penguin daark.child's Avatar
    Join Date
    Apr 2006
    Location
    West Yorks
    Posts
    4,344
    1. Yes it means that the repository is disabled. If the line is "enabled="1", then the repository is enabled.
    2. Use
      Code:
      rpm -ql PackageName
      for installed packages. For rpms that have not yet been installed but are downloaded somewhere on your system
      Code:
      rpm -qlp PackageName-$version.rpm
    3. Use a release rpm from a repository maintainer. If you install the release rpm, the repos are automatically setup. If you uninstall the release rpm, the repos are removed as well. You can also copy *.repo files to /etc/yum.repos.d.
    4. A good one for Fedora is RPMFusion. Remember not to mix too many repositories because this can cause package conflicts and in extreme cases result in broken installations.
    Last edited by daark.child; 09-21-2009 at 05:56 PM. Reason: fix a typo

  3. #3
    Just Joined!
    Join Date
    Sep 2009
    Posts
    5
    thanks daark.child,
    I used
    Code:
    rpm -ql *
    to try and find all installed packages. But this instead gave me a list of many files, some of which said 'xxx is uninstalled' others are just 'xxx' where xxx is a pathname. This is understandable as -q is a querie and -l (ell) is is list. meaning that all packages were displayed, correct? Is there some part im missing? I dont want to querie for each rpm and check if its installed, i would like to view all rpms that are currently installed.

    Also, I tried
    Code:
    rpm -qlp *.rpm
    and found a lot of .patch files. isnt that command supposed to find .rpm's on my HDD?

    Also, if i used yum to install an rpm, would the correct files be updated? and would it be possible for the add/remove software package manager to display the rpm like it does with all the others (ie, could i easily uninstall it and see it in the package manager GUI?)

  4. #4
    Linux Guru reed9's Avatar
    Join Date
    Feb 2009
    Location
    Boston, MA
    Posts
    4,651
    rpm -ql lists the files a package has installed. If you want to list all installed packages
    Code:
    rpm -qa
    rpm(8): RPM Package Manager - Linux man page
    RPM Cheat Sheet Tux Training

  5. #5
    Blackfooted Penguin daark.child's Avatar
    Join Date
    Apr 2006
    Location
    West Yorks
    Posts
    4,344
    Sorry I assumed you wanted to know the files installed by a specific rpm. Use the command posted by reed9 to find out the packages installed via rpm on your system. There is a database in /var/lib/rpm and on my system the db name is named __db.000.

  6. #6
    Just Joined!
    Join Date
    Sep 2009
    Posts
    5
    okay thanks reed0 and daark.child it works. Sorry for my newbie questions :P

Posting Permissions

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