最終更新:2016-04-08 (金) 13:33:09 (1586d)  

yumdownloader
Top / yumdownloader

a program for downloading RPMs from Yum repositories.

yumdownloader --source kernel

GENERAL OPTIONS

  •        -h, --help
                  Help; display a help message and then quit.
    
           --destdir DIR
                  Specify a destination directory for the download.  Defaults to the current directory.
    
           --urls Instead of downloading RPMs, list the URLs that would be downloaded.
    
           --resolve
                  When downloading RPMs, resolve dependencies and also download the required packages.
    
           --source
                  Instead of downloading the binary RPMs, download the source RPMs.
    
           --archlist=ARCH1[,ARCH2...]
                  Limit the query to packages of given architecture(s). Valid values are all architectures known to rpm/yum such as 'i386' and
                  'src' for source RPMS. Note that repoquery will now change yum's "arch" to the first value  in  the  archlist.  So  "--arch‐
                  list=i386,i686" will change yum's canonical arch to i386, but allow packages of i386 and i686.

Fedora 16で3.1のカーネルソースを取得

  • [user@localhost ~]$ yumdownloader --source kernel-3.1.0-7.fc16 
    Loaded plugins: langpacks, presto, refresh-packagekit
    Enabling updates-source repository
    updates-source/metalink                                  | 2.9 kB     00:00     
    updates-source                                           | 3.3 kB     00:00     
    updates-source/primary_db                                | 1.4 MB     00:02     
    Enabling fedora-source repository
    fedora-source/metalink                                   | 3.1 kB     00:00     
    fedora-source                                            | 3.1 kB     00:00     
    fedora-source/primary_db                                 | 3.5 MB     00:07     
    kernel-3.1.0-7.fc16.src.rpm                              |  74 MB     01:43  

パッケージ

関連