Urpm-tools — различия между версиями

Материал из Rosalab Wiki
Перейти к: навигация, поиск
(Added package-cleanup)
 
(urpmi-downloader: update downloader options)
Строка 22: Строка 22:
 
|}
 
|}
  
== urpmi-downloader ==
+
== urpm-downloader ==
 +
A tool for downloading RPMs from Urpmi repositories
  
 
<pre>
 
<pre>
Usage: "urpm-downloader [options] package1 [package2 package3 ...]
+
urpm-downloader.py [-h] [--urls] [-r] [-s] [--version] [-v] [-q]
 +
                  [--include-media INCLUDE_MEDIA [INCLUDE_MEDIA ...]]
 +
                  [--exclude-media EXCLUDE_MEDIA [EXCLUDE_MEDIA ...]]
 +
                  [--exclude-packages EXCLUDE_PACKAGES [EXCLUDE_PACKAGES ...]]
 +
                  [--fail-broken] [--overwrite] [--all-alternatives]
 +
                  packages [packages ...]
  
Options:
+
positional arguments:
   Options inherited from urpmi:
+
   packages              Package name(s) to download
    -h, --help          show this help message and exit
+
    -t, --tolerant      be tolerant of errors
+
    -C, --cacheonly    run entirely from system cache, don't update cache
+
    -c [config file], --config=[config file]
+
                        config file location
+
    -R [minutes], --randomwait=[minutes]
+
                        maximum command wait time
+
    -d [debug level], --debuglevel=[debug level]
+
                        debugging output level
+
    --showduplicates    show duplicates, in repos, in list/search commands
+
    -e [error level], --errorlevel=[error level]
+
                        error output level
+
    --rpmverbosity=[debug level name]
+
                        debugging output level for rpm
+
    -q, --quiet        quiet operation
+
    -v, --verbose      verbose operation
+
    -y, --assumeyes    answer yes for all questions
+
    --version          show Yum version and exit
+
    --installroot=[path]
+
                        set install root
+
    --enablerepo=[repo]
+
                        enable one or more repositories (wildcards allowed)
+
    --disablerepo=[repo]
+
                        disable one or more repositories (wildcards allowed)
+
    -x [package], --exclude=[package]
+
                        exclude package(s) by name or glob
+
    --disableexcludes=[repo]
+
                        disable exclude from main, for a repo or for
+
                        everything
+
    --obsoletes        enable obsoletes processing during updates
+
    --noplugins        disable Yum plugins
+
    --nogpgcheck        disable gpg signature checking
+
    --disableplugin=[plugin]
+
                        disable plugins by name
+
    --enableplugin=[plugin]
+
                        enable plugins by name
+
    --skip-broken      skip packages with depsolving problems
+
    --color=COLOR      control whether color is used
+
    --releasever=RELEASEVER
+
                        set value of $releasever in yum config and repo files
+
    --setopt=SETOPTS    set arbitrary config and repo options
+
  
  urpmi-downloader options:
+
optional arguments:
    --destdir=DESTDIR  destination directory (defaults to current directory)
+
  -h, --help            show this help message and exit
    --urls             just list the urls it would download instead of
+
  --urls               Instead of downloading RPMs, list the URLs that would
                         downloading
+
                         be downloaded
    --resolve           resolve dependencies and download required packages
+
  -r, --resolve         When downloading RPMs, resolve dependencies and also
    --source           operate on source packages
+
                        download the required packages
    --archlist=ARCHLIST
+
  -s, --source         Instead of downloading the binary RPMs, download the
                         only download packages of certain architecture(s)
+
                        source RPMs
 +
  --version            show program's version number and exit
 +
  -v, --verbose        verbose (print additional info)
 +
  -q, --quiet          Quiet operation
 +
  --include-media INCLUDE_MEDIA [INCLUDE_MEDIA ...], --media INCLUDE_MEDIA [INCLUDE_MEDIA ...]
 +
                         use only selected media
 +
  --exclude-media EXCLUDE_MEDIA [EXCLUDE_MEDIA ...]
 +
                        do not use selected media
 +
  --exclude-packages EXCLUDE_PACKAGES [EXCLUDE_PACKAGES ...]
 +
                        Exclude package(s) by name or glob
 +
  --fail-broken        When the package with depsolving problems found, do
 +
                        not skip it, but exit.
 +
  --overwrite          If the file already exists, download it again and
 +
                        overwrite the old one.
 +
  --all-alternatives    While resolving dependencies, if alternative packages
 +
                        present, download all of them.
 
</pre>
 
</pre>
  

Версия 09:59, 19 декабря 2011


Urpmi-utils - набор утилит, расширяющих и дополняющих функциональность urpmi.

В настоящее время ведутся/планируются работы над следующими утилитами:

Tool Description
urpm-repoclosure проверка замкнутости репозитория по зависимостям
urpm-repograph построение графа зависимостей пакетов в репозитории
urpm-repodiff diff двух репозиториев
urpm-distrosync синхронизация локального набора пакетов с репозиторием
urpm-build-distrib создание дистрибутива на основе нескольких репозиториев
urpm-downloader скачивание пакета вместе со всеми зависимостями
urpm-package-cleanup чистка установленных пакетов

urpm-downloader

A tool for downloading RPMs from Urpmi repositories

urpm-downloader.py [-h] [--urls] [-r] [-s] [--version] [-v] [-q]
                   [--include-media INCLUDE_MEDIA [INCLUDE_MEDIA ...]]
                   [--exclude-media EXCLUDE_MEDIA [EXCLUDE_MEDIA ...]]
                   [--exclude-packages EXCLUDE_PACKAGES [EXCLUDE_PACKAGES ...]]
                   [--fail-broken] [--overwrite] [--all-alternatives]
                   packages [packages ...]

positional arguments:
  packages              Package name(s) to download

optional arguments:
  -h, --help            show this help message and exit
  --urls                Instead of downloading RPMs, list the URLs that would
                        be downloaded
  -r, --resolve         When downloading RPMs, resolve dependencies and also
                        download the required packages
  -s, --source          Instead of downloading the binary RPMs, download the
                        source RPMs
  --version             show program's version number and exit
  -v, --verbose         verbose (print additional info)
  -q, --quiet           Quiet operation
  --include-media INCLUDE_MEDIA [INCLUDE_MEDIA ...], --media INCLUDE_MEDIA [INCLUDE_MEDIA ...]
                        use only selected media
  --exclude-media EXCLUDE_MEDIA [EXCLUDE_MEDIA ...]
                        do not use selected media
  --exclude-packages EXCLUDE_PACKAGES [EXCLUDE_PACKAGES ...]
                        Exclude package(s) by name or glob
  --fail-broken         When the package with depsolving problems found, do
                        not skip it, but exit.
  --overwrite           If the file already exists, download it again and
                        overwrite the old one.
  --all-alternatives    While resolving dependencies, if alternative packages
                        present, download all of them.

urpm-repodiff

Take 2 or more repositories and return a list of added, removed and changed packages.

Usage:

repodiff --old=old_repo_baseurl [--old=old_repo2_baseurl ...] --new=new_repo_baseurl [--new=new_repo2_baseurl ...]

urpm-package-cleanup

Find problems in the rpmdb of system and correct them

Usage:

urpm-package-cleanup.py [-h] [--qf QF] [--orphans] [--auto] [--version]
                        [--problems] [--suggests] [--dupes]
                        [--cleandupes] [--noscripts] [--leaves] [--all]
                        [--leaf-regex LEAF_REGEX] [--exclude-devel]
                        [--exclude-bin] [--oldkernels]
                        [--count KERNELCOUNT] [--keepdevel]

optional arguments:
  -h, --help            show this help message and exit
  --qf QF, --queryformat QF
                        Query format to use for output.
  --orphans             List installed packages which are not available from
                        currently configured repositories
  --auto                Use non-interactive mode
  --version             show program's version number and exit

Dependency Problems Options:
  --problems            List dependency problems in the local RPM database
  --suggests            List missing suggestions of installed packages

Duplicate Package Options:
  --dupes               Scan for duplicates in your rpmdb
  --cleandupes          Scan for duplicates in your rpmdb and remove older
  --noscripts           disable rpm scriptlets from running when cleaning
                        duplicates

Leaf Node Options:
  --leaves              List leaf nodes in the local RPM database
  --all                 list all packages leaf nodes that do not match leaf-
                        regex
  --leaf-regex LEAF_REGEX
                        A package name that matches this regular expression
                        (case insensitively) is a leaf
  --exclude-devel       do not list development packages as leaf nodes
  --exclude-bin         do not list packages with files in a bin dirs asleaf
                        nodes

Old Kernel Options:
  --oldkernels          Remove old kernel and kernel-devel packages
  --count KERNELCOUNT   Number of kernel packages to keep on the system
                        (default 2)
  --keepdevel           Do not remove kernel-devel packages when removing
                        kernels