apt-zip-list, apt-zip-inst - Use apt with removable media
apt-zip-list [ --help ] [ --version ] [ --medium=mountpoint ] [ --aptgetaction=action ] [ --packages=package[,package...] ] [ --fix-broken ] [ --skip-mount ] [ --method=method ] [ --options=opt[,opt...] ] [ --accept=accept[,accept...] | --reject=reject[,reject...] ]
apt-zip-inst [ --help ] [ --version ] [ --medium=mountpoint ] [ --aptgetaction=action ] [ --packages=package[,package...] ] [ --fix-broken ] [ --skip-mount ]
This manpage should be up-to-date with version 0.14 of the programs.
The apt-zip-list and apt-zip-inst commands simplify the upgrade process of a non-networked Debian host using apt(8), by using (preferably high-capacity) removable media, like a ZIP drive.
apt-zip-list produces two files. One is a script that can be used on another host (maybe not running a Debian system) to fetch packages previously selected in dselect(8) or indicated in the command line, the other apt-zip.options saves the options used by apt-zip-list to indicates to apt-zip-inst what action to perform and/or which packages to install. Various types of scripts can be generated, by specifying a fetch method supported by the host that will fetch the packages. If you prefer, the script may generate a tarball containing the fetched packages. Note that apt-zip-list can be called as a non-root user.
The name of the script (as well as the name of the tarfile when using the tar option) contains the name of the Debian host for which the packages are to be fetched. Thus you can, using the same medium, upgrade several hosts at the same time, provided you have enough space on this disk. This should work with or without the tar option.
The script is written to the removable medium, which is mounted if necessary, and then restored to the original unmounted state when applicable. It is the responsibility of the user then to run the script on a host that will fetch the packages, and to have them (or the generated archive) copied to the removable medium.
When back on your Debian host, you just run apt-zip-inst, which will take care of the script-produced files, and call apt(8) to install the packages on your disk.
If --packages is not set the default is dselect-upgrade (See also apt-zip.conf), if it is set none is selected.
Currently available options include:
When used in conjunction with the restart option, a GNU tar must be specified, so that 2 tarballs man be concatenated - this is only needed on the 3rd and subsequent runs of the fetch script.
The /etc/apt/apt-zip.conf file can be used to set defaults: method, removable medium, options, apt-get action and accepted/rejected protocols. It is a self-explainatory bourne-shell script snippet. It allows to provide site defaults for command-line options.
A method is handled by an executable object (usually a script) placed in the /usr/share/apt-zip/methods/ directory. This executable is fed on standard input with the output of apt-get --print-uris.
It is communicated the state of requested options using for each option an environment variables named OPTION_OPTNAME, where OPTNAME is the uppercased name of an option.
Additional environment variables are also set, such as APTZIPVERSION, APTZIPTARFILE, APTZIPINSFILE, and OPTIONS.
/etc/apt/apt-zip.conf
The programs were written by YannDirson <dirson@debian.org>. It was maintained previously by SantiBejar <tiarda@yahoo.es>, and currently maintained by GiacomoCatenazzi <cate@debian.org> for the Debian GNU/Linux system.
The source for this reference page is an SGML file, which can be converted to UNIX manpages using docbook2man(1)
apt(8), apt-get(8), dselect(8).
Закладки на сайте Проследить за страницей |
Created 1996-2024 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |