Apt-repo

Материал из ALT Linux Wiki

(Различия между версиями)
Перейти к: навигация, поиск
(Документация)
Строка 1: Строка 1:
-
[[Категория:APT]]
 
-
[[Категория:Software]]
 
-
[[Категория:Devel]]
 
-
 
apt-repo -- Script for manipulation APT repository list
apt-repo -- Script for manipulation APT repository list
Строка 8: Строка 4:
<pre>NAME
<pre>NAME
-
      apt-repo -- Manipulate APT repository list
+
    apt-repo Manipulate APT repository list
SYNOPSIS
SYNOPSIS
-
        apt-repo> [list] [-a]
+
    apt-repo [list] [-a]
-
        apt-repo> add [APT|URL|branch|task] [name or component]
+
    apt-repo add source
-
        apt-repo> rm [APT|URL|branch|task] [name or component]
+
    apt-repo rm source|all [type]
-
        apt-repo> update
+
    apt-repo clear
 +
    apt-repo update
 +
    apt-repo [-h] [-v]
DESCRIPTION
DESCRIPTION
-
      The apt-repo script allow to show, add and remove APT repositories specified by address in sources.list(5)  
+
    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
-
      format, URL with optional component, branch name or task number.
+
    task number.
OPTIONS
OPTIONS
-
      list
+
    list   Show active repositories in sources.list(5) format. If -a is specified all available repositories are displayed (inactive are commended by #).
-
          Show active repositories in sources.list(5) format. If -a is specified all available repositories are  
+
-
          displayed (inactive are commended by `#`).
+
-
      add Add repository to list of active repositories.
+
    add source
 +
            Add source to list of active repositories.
-
      rm Remove or comment active repository.
+
    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.
-
      update
+
    clear  Removes all cdrom and task sources.
-
          Run "apt-get update" to update APT cache from active repositories.
+
-
      -h, --help
+
    update  Run
-
          Print usage information and quit.
+
                  apt-get update
 +
            to update APT cache from active repositories.
-
      -v, --version
+
    -h --help
-
          Print version and quit.
+
            Print usage information and quit.
-
EXAMPLES
+
    -v --version
-
      Add p5 branch:
+
            Print version and quit.
-
        apt-repo add branch p5
+
SOURCE FORMAT
 +
  APT Source
 +
    Source can be specified in sources.list(5) format:
-
      Add repository specified in sources.list(5) format:
+
          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
 +
    two lines will be added (current system architecture and ‘noarch’ ) with component ‘classic’
-
      Add task repository:
+
  URL
 +
    APT supports file://, http://, ftp://, rsync:// and cdrom:// protocols.  URL with required protocol may trail optional architecture and one or more compo‐
 +
    nents. If architecture and component are missed two lines will be added (current system architecture and ‘noarch’ ) with component ‘classic’.  This form is
 +
    useful to add branch on mirror server.
-
        apt-repo add task 39115
+
    Example:
-
      Remove task repository:
+
          apt-repo add ftp://mirror.yandex.ru/altlinux/p5/branch
-
        apt-repo rm task 39115
+
  Absolute Path
 +
    Local directory beginning with ‘/’ added as hasher repository: with current system architecture and hasher component.
-
SEE ALSO
+
          apt-repo add /opt/repo
-
      sources.list(5), apt-cache(8), apt-get(5).
+
-
AUTHORS
+
  Branch
-
        Andrey Cherepanov <cas@altlinux.org>
+
    Branch is named repository consist from two parts (current system architecture and 'noarch'). By default official server is used. Full form:
-
COPYRIGHT AND LICENSE
+
          apt-repo add branch <name of branch>
-
      Copyright 2011 by Andrey Cherepanov <cas@altlinux.org>
+
-
      This software is distributed under the GNU General Public License (GPL) version 3 or later.</pre>
+
    Keyword ‘branch’ may be omitted. Example:
 +
 
 +
          apt-repo add p5
 +
 
 +
    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(5)
 +
 
 +
AUTHORS
 +
    Andrey Cherepanov cas@altlinux.org</pre>
== Скачать ==
== Скачать ==
  http://git.altlinux.org/people/cas/packages/apt-repo.git
  http://git.altlinux.org/people/cas/packages/apt-repo.git
 +
 +
[[Категория:APT]]
 +
[[Категория:Полезно]]
 +
[[Категория:Devel]]

Версия 10:42, 20 ноября 2012

apt-repo -- Script for manipulation APT repository list

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

NAME
     apt-repo — Manipulate APT repository list

SYNOPSIS
     apt-repo [list] [-a]
     apt-repo add source
     apt-repo rm source|all [type]
     apt-repo clear
     apt-repo update
     apt-repo [-h] [-v]

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
     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 ‘#’ ).

     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.

     clear   Removes all cdrom and task sources.

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

     -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://, http://, ftp://, rsync:// and cdrom:// protocols.  URL with required protocol may trail optional architecture and one or more compo‐
     nents. If architecture and component are missed two lines will be added (current system architecture and ‘noarch’ ) with component ‘classic’.  This form is
     useful to add branch on mirror server.

     Example:

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

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

           apt-repo add /opt/repo

   Branch
     Branch is named repository consist from two parts (current system architecture 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 p5

     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(5)

AUTHORS
     Andrey Cherepanov cas@altlinux.org

Скачать

http://git.altlinux.org/people/cas/packages/apt-repo.git
 
Личные инструменты