Apt-repo

Материал из ALT Linux Wiki
Версия от 21:36, 4 апреля 2016; Asy (обсуждение | вклад) (добавлено пояснение о возможном отсутствии в дистрибутиве и ссылка на "Репозитории ALT Linux".)

apt-repo -- Script for manipulation APT repository list

Утилита существует с 2011 года. В дистрибутивы она попадает, начиная с поздних выпусков дистрибутивов на бранче p7, однако была помещена в бранчи p5/5.1 и p6/t6. Если утилита оказалась у Вас не установлена, установите её из соответствующего репозитория.

Документация

NAME
     apt-repo — Manipulate APT repository list

SYNOPSIS
     apt-repo [list] [-a]
     apt-repo list [task] id
     apt-repo add source
     apt-repo rm source|all [type]
     apt-repo clean
     apt-repo update
     apt-repo test [task] id
     apt-repo [-h] [-v]

DESCRIPTION
     The apt-repo script allow to show, add and remove APT repositories speci‐
     fied by source in sources.list(5) format, URL with optional component,
     branch name or task number.

OPTIONS
     list    Show active repositories in sources.list(5) format. If -a is
             specified all available repositories are displayed (inactive are
             commended by ‘#’ ).

     list [task] id
             Show names of all available packages (except *-debuginfo) in
             specified by id task repository.

     add source
             Add source to list of active repositories.

     rm source [<type>]
             Remove or comment source if it is active. Special keyword all
             removes all active sources. The all keyword followed by optional
             <type> removes all sources of specified type: ‘branch’ or
             ‘branches’ removes all branch sources, ‘task’ or ‘tasks’ removes
             all tasks sources, ‘cdrom’ or ‘cdroms’ removes all cdrom sources.

     clean   Removes all cdrom and task sources.

     update  Run
                   apt-get update
             to update APT cache from active repositories.

     test [task] id
             Install all available packages (except *-debuginfo) from speci‐
             fied by id task repository.

     -h --help
             Print usage information and quit.

     -v --version
             Print version and quit.

SOURCE FORMAT
   APT Source
     Source can be specified in sources.list(5) format:

           apt-repo add "rpm http://git.altlinux.org/repo/39115/ i586 task"

     Recognized repository types: rpm, rpm-dir and rpm-src. It is allowed to
     specify source as separate words. If trailing architecture and component
     are missed two lines will be added (current system architecture and
     ‘noarch’ ) with component ‘classic’

   URL
     APT supports file://, copy://, http://, ftp://, rsync:// and cdrom://
     protocols.  URL with required protocol may trail optional architecture
     and one or more components. If architecture and component are missed two
     lines will be added (current system architecture and ‘noarch’ ) with com‐
     ponent ‘classic’.  This form is useful to add branch on mirror server.

     Example:

           apt-repo add ftp://mirror.yandex.ru/altlinux/p7/branch

   Absolute Path
     Local directory beginning with ‘/’ added as hasher repository: with cur‐
     rent system architecture and hasher component.

           apt-repo add /opt/repo

   Branch
     Branch is named repository consist from two parts (current system archi‐
     tecture and 'noarch'). By default official server is used. Full form:

           apt-repo add branch <name of branch>

     Keyword ‘branch’ may be omitted. Example:

           apt-repo add p7
     Run
           apt-repo add branch

     without name of branch displays all available branch names.

   Task
     Task is small repository for one or more subtask built in
     http://git.altlinux.org infrastructure. This source is used to install
     software for test purpose.  Any task has unique number. Full form:

           apt-repo add task <number of task>

     Keyword ‘task’ may be omitted. Example:

           apt-repo add 39115

SEE ALSO
     sources.list(5), apt-cache(8), apt-get(8)

AUTHORS
     Andrey Cherepanov cas@altlinux.org

Скачать

http://git.altlinux.org/people/cas/packages/apt-repo.git