#!/bin/sh # Creates files containing lists of installed and manually installed packages # in cache directory pkgdir="$HOME/.cache/packages" apt list --installed | tail -n+2 | cut -d '/' -f 1 > $pkgdir/installed apt list --manual-installed | tail -n+2 | cut -d '/' -f 1 > $pkgdir/manual-installed