Skip to main content

Apt archive toolkit

Project description

用于修改apt软件仓库的工具集

安装:

推荐:

python setup.py sdist
sudo pip install dist/* 或 pip install --user dist/*

不推荐:

sudo python setup.py install --record install.log

卸载:

如果是pip安装:

pip uninstall apt-archive-tools

如果是setup.py安装:

cat install.log | xargs sudo rm -rf

临时使用:

直接运行 archive-man.py

查看命令行帮助

archive-man --help

依赖:

python-2.7

apt-utils

reprepro

gnupg

普通软件源操作:

有一堆deb包,想要发布成一个apt源

创建源文件夹a(名字可以随意,但不要用中文),在里面创建一个pool的子文件夹

mkdir -p a/pool

把deb包放到pool目录里

cp /path-to-my-package/*.deb a/pool/

执行发布命令

archive-man publish a -s stable -a arm64
  • -s 指定版本代号

  • -a 可以指定多次,如果想要用同一个目录提供多个体系结构的软件源

发布完后会提示source.list的写法。

复制一个远程软件源

可以复制某个软件源的一部分(指定需要的系列,指定需要的体系结构,指定需要的component)

archive-man copy http://archive.ubuntu.com/ubuntu /local-path -s xenial -a amd64 -a i386 -c main -c universe
  • -s 指定版本代号
  • -a 指定体系结构,可以指定多次
  • -c 指定软件源component,可以指定多次

All Functions

key

import PGP key for signing

sign

sign Release file with imported PGP key

copy

copy archive (only one suite) to a local directory

local-copy

just like cp, but files in pool/ will be a hardlink to source

publish

publish a customized archive form a package pool

merge

merge 2 or more suites into a new suite in the same archive

strip

remove unnecessary files from pool/ if local archive

diff

compare the package list of two dists

check

check missing or unnecessary debian packages in archive

checkdep

check dependencies of packages in an archive

rename

change filename of package in the archive indexes

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

apt-archive-tools-1.1.0.dev27.tar.gz (49.6 kB view details)

Uploaded Source

File details

Details for the file apt-archive-tools-1.1.0.dev27.tar.gz.

File metadata

  • Download URL: apt-archive-tools-1.1.0.dev27.tar.gz
  • Upload date:
  • Size: 49.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.6.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/2.7.18

File hashes

Hashes for apt-archive-tools-1.1.0.dev27.tar.gz
Algorithm Hash digest
SHA256 b4dabf2fa5be2dc788909ad72e389b23c78dd2843209a7a109482361853c0b3d
MD5 5307353d13fd37cfed49dc9f73735162
BLAKE2b-256 a2a65cea6ee4f8d2083fd6e0f52d579e1d192f4ddeb7dea193e0eb389cca69ef

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page