Skip to content

Instantly share code, notes, and snippets.

@christophlehmann
Created June 8, 2025 23:58
Show Gist options
  • Save christophlehmann/95b18ef26da1a8232d3398e4bf100892 to your computer and use it in GitHub Desktop.
Save christophlehmann/95b18ef26da1a8232d3398e4bf100892 to your computer and use it in GitHub Desktop.
Install a fake debian package
#!/bin/sh
set -e
package=$1
mkdir -p $package/DEBIAN
mkdir $package/usr
echo "
Package: $package
Version: 999.999.999
Maintainer: Faker
Architecture: all
Description: Fake $package
" > $package/DEBIAN/control
dpkg-deb --build $package
dpkg -i $package.deb
rm -rf $package.deb $package
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment