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 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.


      add Add repository to list of active repositories.
    update  Run
                  apt-get update
            to update APT cache from active repositories.


      rm  Remove or comment active repository.
    -h --help
            Print usage information and quit.


      update
    -v --version
          Run "apt-get update" to update APT cache from active repositories.
            Print version and quit.


      -h, --help
SOURCE FORMAT
          Print usage information and quit.
  APT Source
    Source can be specified in sources.list(5) format:


      -v, --version
          apt-repo add "rpm http://git.altlinux.org/repo/39115/ i586 task"
          Print version and quit.


EXAMPLES
    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
      Add p5 branch:
    two lines will be added (current system architecture and ‘noarch’ ) with component ‘classic’


        apt-repo add branch p5
  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.


      Add repository specified in sources.list(5) format:
    Example:


        apt-repo add 'rpm http://git.altlinux.org/repo/39115/ i586 task'
          apt-repo add ftp://mirror.yandex.ru/altlinux/p5/branch


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


        apt-repo add task 39115
          apt-repo add /opt/repo


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


        apt-repo rm task 39115
          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
SEE ALSO
      sources.list(5), apt-cache(8), apt-get(5).
    sources.list(5), apt-cache(8), apt-get(5)


AUTHORS
AUTHORS
        Andrey Cherepanov <cas@altlinux.org>
    Andrey Cherepanov cas@altlinux.org</pre>
 
COPYRIGHT AND LICENSE
      Copyright 2011 by Andrey Cherepanov <cas@altlinux.org>
 
      This software is distributed under the GNU General Public License (GPL) version 3 or later.</pre>


== Скачать ==
== Скачать ==


  http://git.altlinux.org/people/cas/packages/apt-repo.git
  http://git.altlinux.org/people/cas/packages/apt-repo.git
[[Категория:APT]]
[[Категория:Полезно]]
[[Категория:Devel]]

Версия от 13: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