added files for setting up ubuntu mirror for offline dev
This commit is contained in:
parent
3ab424b72e
commit
4b47b5c23a
47
osxubuntumirror/debmirror.sh
Executable file
47
osxubuntumirror/debmirror.sh
Executable file
@ -0,0 +1,47 @@
|
||||
#!/bin/bash
|
||||
|
||||
export GNUPGHOME="${HOME}/.local/etc/debmirror/keyring"
|
||||
mkdir -p "$GNUPGHOME"
|
||||
gpg --no-default-keyring \
|
||||
--keyring $GNUPGHOME/trustedkeys.gpg \
|
||||
--import ./ubuntu-archive-keyring.gpg
|
||||
|
||||
debmirror \
|
||||
--ignore-small-errors \
|
||||
-a amd64 \
|
||||
--verbose \
|
||||
--no-source \
|
||||
-s main,restricted \
|
||||
-h ber1.local \
|
||||
-d precise,precise-updates,precise-security \
|
||||
-d quantal,quantal-updates,quantal-security \
|
||||
-d raring,raring-updates,raring-security \
|
||||
-d saucy,saucy-updates,saucy-security \
|
||||
-d trusty,trusty-updates,trusty-security \
|
||||
--exclude-deb-section=kde \
|
||||
--exclude-deb-section=gnome \
|
||||
--exclude-deb-section=x11 \
|
||||
--exclude-deb-section=unity \
|
||||
--exclude-deb-section=games \
|
||||
--exclude='/android' \
|
||||
--exclude='/brother-*' \
|
||||
--exclude='/aspell-(?!en)' \
|
||||
--exclude='/asterisk-core-sounds-(?!en)' \
|
||||
--exclude='/asterisk-prompt-(?!en)' \
|
||||
--exclude='/nvidia*' \
|
||||
--exclude='/bcmwl*' \
|
||||
--exclude='/fglrx*' \
|
||||
--exclude='/thunderbird*' \
|
||||
--exclude='/libreoffice*' \
|
||||
--exclude='/linux-signed*' \
|
||||
--exclude='/linux-doc*' \
|
||||
--exclude='/kde*' \
|
||||
--exclude='/firefox*' \
|
||||
--exclude='/gnome*' \
|
||||
--exclude='/libgnome*' \
|
||||
--exclude='/language-pack-(?!en)' \
|
||||
--exclude='-dbg_*' \
|
||||
-r /ubuntu \
|
||||
--progress \
|
||||
-e http \
|
||||
$OSX_LOCAL_UBUNTU_MIRROR
|
@ -24,6 +24,9 @@ RE+=' --exclude /pool/main/*/*/*.gz'
|
||||
RE+=' --exclude /pool/main/k/kde*'
|
||||
RE+=' --exclude /pool/main/g/gnome*'
|
||||
RE+=' --exclude /pool/main/l/language-pack*'
|
||||
RE+=' --exclude /pool/main/l/linux-ec2'
|
||||
|
||||
# need english
|
||||
RE+=' --include /pool/main/l/language-pack*en*'
|
||||
RE+=' --include /pool/main/l/language-support*en*'
|
||||
|
||||
|
BIN
osxubuntumirror/ubuntu-archive-keyring.gpg
Normal file
BIN
osxubuntumirror/ubuntu-archive-keyring.gpg
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user