-1

I am Creating a project to view and upgrade packages in Ubuntu. Is there any command for list only Third party software?

dpkg --list shows all packages installed in OS.

pomsky
  • 70,557

2 Answers2

2

To list the packages installed from third-party repositories:

ubuntu-security-status --thirdparty 

To list the locally installed or obsolete packages missing from any enabled repository:

ubuntu-security-status --unavailable

To further check the specifics, type in:

apt-cache policy <package_name>
funicorn
  • 4,306
  • 2
  • 21
  • 17
1

Using apt and grep to get local(-obsolete) packages, i.e. there is nothing in the package that identifies the origin of the package.

apt list --installed | \
    grep -F "$(gettext 'apt' '[installed,local]')"