Skip to content

Instantly share code, notes, and snippets.

@szepeviktor
Last active August 29, 2015 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save szepeviktor/11087679 to your computer and use it in GitHub Desktop.
Save szepeviktor/11087679 to your computer and use it in GitHub Desktop.
Backport Debian packages from Jessie (testing)
MOVED to: https://github.com/szepeviktor/debian-server-tools
MOVED to: https://github.com/szepeviktor/debian-server-tools
MOVED to: https://github.com/szepeviktor/debian-server-tools
MOVED to: https://github.com/szepeviktor/debian-server-tools
#!/bin/bash
ln -sv /lib/x86_64-linux-gnu/libpcre.so.1.2.3 /lib/x86_64-linux-gnu/libpcre.so.3
#!/bin/bash
cat << DR__
ar xv name.deb
ar rv name.deb debian-binary control.tar.gz data.tar.gz
ls *.deb|while read a; do ar tv "$a"|grep -q _gpgbuilder && ar dv "$a" _gpgbuilder _gpgbuilder0; done
dpkg-sig -k 451A4FBA --sign builder *.deb
reprepro remove wheezy pkg-name
reprepro includedeb wheezy /var/www/mirror/debs/*.deb
DR__
Origin: mirror.szepe.net
Label: mirror.szepe.net
Codename: wheezy
Architectures: amd64
Components: main
Description: Modern webserver solutions
SignWith: 451A4FBA
DebOverride: override.wheezy
DscOverride: override.wheezy
DscIndices: Sources Release . .gz .bz2
DebIndices: Packages Release . .gz .bz2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment