⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.133
Server IP:
185.119.109.197
Server:
Linux managedhosting.chostar.me 5.15.0-160-generic #170-Ubuntu SMP Wed Oct 1 10:06:56 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.1.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
etc
/
etckeeper
/
list-installed.d
/
View File Name :
50list-installed
#!/bin/sh if [ "$1" = fmt ]; then # If the list format changes, change the fmt if [ "$LOWLEVEL_PACKAGE_MANAGER" = dpkg ]; then echo 2 else echo "" fi else # Keep the sort order the same at all times. LC_COLLATE=C export LC_COLLATE unset LC_ALL # 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} ${Architecture}\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" = pacmatic ]; then pacmatic -Q elif [ "$LOWLEVEL_PACKAGE_MANAGER" = pkgng ]; then pkg info -E "*" elif [ "$LOWLEVEL_PACKAGE_MANAGER" = apk ]; then apk info -v | sort fi fi