-
Notifications
You must be signed in to change notification settings - Fork 3
Setup Local Repository
Bofu Chen edited this page Oct 18, 2020
·
7 revisions
To testing or debugging a package, local repository is useful.
# If you use Docker, install dependencies first
$ apt-get install -y mini-dinstall vim
$ sudo apt install mini-dinstall
$ cat ~/.dput.cf
[local]
fqdn = localhost
method = local
incoming = ~/archive/mini-dinstall/incoming
allow_unsigned_uploads = 1
post_upload_command = mini-dinstall --batch
$ cat ~/.mini-dinstall
...
$ cat /etc/apt/sources.list.d/local.list
deb file:///home/debug/archive xenial/
deb-src file:///home/debug/archive xenial/
The mini-dinstall configuration is indicated in the dput configuration.
To provide the passphrase of BerryNet public key automatically, put the passphrase in <gnupg-dir>/passphrase
.
```
# If you use Docker, install dependencies first
$ apt-get install -y dpkg-dev vim
$ mkdir /tmp/debs
$ cp <debs> /tmp/debs
$ cd /tmp/debs
$ dpkg-scanpackages . /dev/null | gzip -9c > Packages.gz
$ cat /etc/apt/sources.list.d/local.list
deb file:/tmp/debs ./
# Update local repo by apt-get instead of apt
# apt will give Err
$ sudo apt-get update
```