Apt-repo: различия между версиями

Материал из ALT Linux Wiki
Нет описания правки
м (обновил до 1.2.0)
Строка 8: Строка 8:
SYNOPSIS
SYNOPSIS
     apt-repo [list] [-a]
     apt-repo [list] [-a]
    apt-repo list [task] id
     apt-repo add source
     apt-repo add source
     apt-repo rm source|all [type]
     apt-repo rm source|all [type]
     apt-repo clear
     apt-repo clean
     apt-repo update
     apt-repo update
    apt-repo test [task] id
     apt-repo [-h] [-v]
     apt-repo [-h] [-v]


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


OPTIONS
OPTIONS
     list    Show active repositories in sources.list(5) format. If -a is specified all available repositories are displayed (inactive are commended by ‘#’ ).
     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
Строка 25: Строка 34:


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


     clear   Removes all cdrom and task sources.
     clean   Removes all cdrom and task sources.


     update  Run
     update  Run
                   apt-get update
                   apt-get update
             to update APT cache from active repositories.
             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
     -h --help
Строка 47: Строка 62:
           apt-repo add "rpm http://git.altlinux.org/repo/39115/ i586 task"
           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
     Recognized repository types: rpm, rpm-dir and rpm-src. It is allowed to
    two lines will be added (current system architecture and ‘noarch’ ) with component ‘classic’
    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
   URL
     APT supports file://, http://, ftp://, rsync:// and cdrom:// protocols.  URL with required protocol may trail optional architecture and one or more compo‐
     APT supports file://, copy://, http://, ftp://, rsync:// and cdrom://
    nents. If architecture and component are missed two lines will be added (current system architecture and ‘noarch’ ) with component ‘classic’.  This form is
    protocols.  URL with required protocol may trail optional architecture
    useful to add branch on mirror server.
    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:
     Example:


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


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


           apt-repo add /opt/repo
           apt-repo add /opt/repo


   Branch
   Branch
     Branch is named repository consist from two parts (current system architecture and 'noarch'). By default official server is used. Full form:
     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>
           apt-repo add branch <name of branch>
Строка 71: Строка 92:
     Keyword ‘branch’ may be omitted. Example:
     Keyword ‘branch’ may be omitted. Example:


           apt-repo add p5
           apt-repo add p7
 
     Run
     Run
           apt-repo add branch
           apt-repo add branch
Строка 79: Строка 99:


   Task
   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.
     Task is small repository for one or more subtask built in
    Any task has unique number. Full form:
    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>
           apt-repo add task <number of task>
Строка 89: Строка 110:


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


AUTHORS
AUTHORS

Версия от 19:06, 2 сентября 2014

apt-repo -- Script for manipulation APT repository list

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

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