Changes between Version 2 and Version 3 of RepoQuery

Show
Ignore:
Author:
skvidal (IP: 98.122.161.79)
Timestamp:
06/22/10 14:36:32 (7 years ago)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • RepoQuery

    v2 v3  
    55== Enabling repositories == 
    66 
    7 By default repoquery acts on the repositories you have enabled in your yum configuration. You can enable/disable repos by using --enablerepo=repoid or --disablerepo=repoid. Occasionally you'll just want to query a single repo, when that happens you can use repoquery --repoid=repoid. Then ONLY that repository will be enabled, no matter your yum configuration. 
     7By default repoquery acts on the repositories you have enabled in your yum configuration. You can enable/disable repos by using ''--enablerepo=repoid'' or ''--disablerepo=repoid''. Occasionally you'll just want to query a single repo, when that happens you can use ''repoquery --repoid=repoid''. Then ONLY that repository will be enabled, no matter your yum configuration. 
    88 
    9 Often you may find yourself wanting to query a repo that is NOT set up in your yum configuration. Repoquery handles that case specifically with --repofrompath: {{{ repoquery  --repofrompath=somereponame,http://path/to/this/repo --repoid=somereponame  -q -a }}} 
     9Often you may find yourself wanting to query a repo that is NOT set up in your yum configuration. Repoquery handles that case specifically with ''--repofrompath'':  
     10    
     11   {{{  
     12       repoquery  --repofrompath=somereponame,http://path/to/this/repo --repoid=somereponame  -q -a  
     13   }}} 
    1014 
    1115== Specifying archs == 
    1216 
    13 Repoquery can work on any arch but by default it uses the arches for the system it is running on. However, if you want to specify an arch for it to use you can use --archlist. Some examples: 
     17Repoquery can work on any arch but by default it uses the arches for the system it is running on. However, if you want to specify an arch for it to use you can use ''--archlist''. Some examples: 
    1418 
    1519Only query i686 pkgs, nothing else: 
    16 {{{ repoquery -q --archlist=i686 -a }}} 
     20 
     21   {{{  
     22      repoquery -q --archlist=i686 -a  
     23   }}} 
    1724 
    1825Query i686 and i386 pkgs: 
    19 {{{ repoquery -q --archlist=i686,i386 -a }}} 
     26   
     27   {{{  
     28      repoquery -q --archlist=i686,i386 -a  
     29   }}} 
    2030 
    2131Look at source rpms: 
    22 {{{ repoquery -q --archlist=src -a }}} 
     32 
     33   {{{  
     34      repoquery -q --archlist=src -a  
     35    }}} 
    2336 
    2437 
    2740If you need to figure out what in the repos requires any thing from a particular package run: 
    2841 
    29 {{{ repoquery -q --whatrequires --alldeps pkgname }}}  
     42   {{{  
     43     repoquery -q --whatrequires --alldeps pkgname 
     44   }}}  
     45 
    3046  (in new versions of repoquery --alldeps is the default) 
    3147 
    3248If you need to figure out which srpms have a buildrequirement on a particular pkgname run: 
    3349 
    34 {{{ repoquery --archlist=src --repoid=some_repo_with_srpms -q --whatrequires pkgname }}} 
     50   {{{ repoquery --archlist=src --repoid=some_repo_with_srpms -q --whatrequires pkgname }}} 
    3551 
    3652Using repoquery on installed packages only: 
    37 {{{ repoquery --pkgnarrow=installed -q --whatrequires --alldeps pkgname }}} 
    38 That is the equivalent of: rpm -q --whatrequires pkgname 
     53   {{{  
     54      repoquery --pkgnarrow=installed -q --whatrequires --alldeps pkgname  
     55   }}} 
     56 
     57That is the equivalent of: ''rpm -q --whatrequires pkgname'' 
    3958 
    4059 
    4362If you need to print out a list of pkgs, their url from the repo and the repo they came from you could run: 
    4463 
    45 {{{ repoquery -q --qf="%{name} %{repoid} %{location}" pkg1 pkg2 pkg3 }}} 
     64   {{{  
     65    repoquery -q --qf="%{name} %{repoid} %{location}" pkg1 pkg2 pkg3  
     66   }}} 
    4667 
    4768 
    5172see  
    5273 
    53 {{{ repoquery --help }}} 
     74   {{{ repoquery --help }}} 
    5475 
    5576and  
    5677 
    57 {{{ man repoquery }}} 
     78   {{{ man repoquery }}} 
    5879 
    5980for more help.