saving uncommitted changes in /etc prior to emerge run
This commit is contained in:
16
etckeeper/list-installed.d/50list-installed
Executable file
16
etckeeper/list-installed.d/50list-installed
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/bin/sh
|
||||
# Output to stdout a *sorted* list of all currently installed
|
||||
# (or removed but still with config-files) packages, in the
|
||||
# format "package version\n" (or something similar).
|
||||
if [ "$LOWLEVEL_PACKAGE_MANAGER" = dpkg ]; then
|
||||
dpkg-query -W -f '${Status}\t${Package} ${Version}\n' | \
|
||||
egrep '(ok installed|ok config-files)' | cut -f2,3
|
||||
elif [ "$LOWLEVEL_PACKAGE_MANAGER" = rpm ]; then
|
||||
rpm -qa --qf "%|epoch?{%{epoch}}:{0}|:%{name}-%{version}-%{release}.%{arch}\n" | sort
|
||||
elif [ "$LOWLEVEL_PACKAGE_MANAGER" = pacman ]; then
|
||||
pacman -Q
|
||||
elif [ "$LOWLEVEL_PACKAGE_MANAGER" = qlist ]; then
|
||||
qlist -ICv
|
||||
elif [ "$LOWLEVEL_PACKAGE_MANAGER" = cave ]; then
|
||||
cave print-packages -r installed
|
||||
fi
|
||||
Reference in New Issue
Block a user