0 کاربر و 1 مهمان درحال مشاهده موضوع.
۲۱.۲۰ ؟
با apt هم باید بشه. کسی ایدهای داره؟
apt list --installed
کد: [انتخاب]apt list --installed
#!/usr/bin/env python3import aptcache = apt.Cache()package_count = 0desired_list = ["bullseye/main", "main", "contrib", "non-free", "stable-security", "bullseye-security"]for package in cache: if ( package.is_installed and package.candidate.origins[0].component not in desired_list ): package_origin = package.candidate.origins[0] print( package.name, package_origin.origin, # The Origin, as set in the Release file package_origin.archive, # The archive (eg. Ubuntu release name) package_origin.component, # The component (eg. main/universe) package_origin.site, # The hostname of the site. package_origin.label, # The Label, as set in the Release file package_origin.trusted, ) package_count += 1print(package_count, "packages not from given list")
linux-headers-5.10.0-11-amd64 now now Falselinux-headers-5.10.0-11-common now now Falsenypatchy now now Falseperl-modules-5.28 now now Falserpi-imager now now Falsevirtualbox-6.1 now now Falsexfce4-notes now now False