Re: User-installable Debian packages?
- Date: Sat, 22 Jul 2017 21:34:46 +1000
- From: Paul Wise <pabs@xxxxxxxxxx>
- Subject: Re: User-installable Debian packages?
On Sat, Jul 22, 2017 at 8:28 PM, Steffen Möller wrote:
> user-installable packages
That sounds like Flatpak/Snappy/etc.
I would wager most Debian packages are not bit-for-bit identical when
you vary the installation prefix (and Debian build tools don't support
doing that AFAICT), but you can almost fake user-installable packages
using existing binary packages using something like this (sorry about
the wrapping). If we were all using Hurd then a few extra overlay
mount points would be enough of course.
==> .bash.d/software <==
==> software/update <==
rm -rf usr apt/archives/*.deb
rsync --delete --archive --exclude archives /var/cache/apt/ apt/
rsync --delete --archive --exclude lock --exclude Lock /var/lib/dpkg/ dpkg/
apt-get -o 'Dir::Cache=/home/pabs/software/apt' -o
for f in apt/archives/*.deb ; do
dpkg -x $f .