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.

  • 2
    Welcome to Ask Ubuntu! What do you mean by third-party software? I can image multiple options: Software from 1. universe/multiverse repository, 2. non-Ubuntu repositories (PPAs, etc.), 3. manually installed using .deb files, 4. manually installed by other means…
    – Melebius
    Nov 26, 2019 at 7:08
  • hi Melebus , sorry for the incomplete question. like in Windows OS,installed software can be categorize as Microsoft or Non Microsoft software. like wise in linux , how can we categorize. Nov 26, 2019 at 12:13
  • 2
    “in Windows OS,installed software can be categorize as Microsoft or Non Microsoft software.” This is not how the Linux world works. Linux software is generally made by community and distributed by a distro maintainer which for Ubuntu is Canonical Inc. However, they haven’t developed all the provided software. What is the purpose of such a categorization?
    – Melebius
    Nov 26, 2019 at 12:18
  • 2
  • 1
    The packages installed by the Ubuntu Desktop installer have two easily identifiable characterisics: The top-level package in the dependency chain is the ubuntu-desktop metapackage, and the packages are apt-marked as manual even though they were automatically installed.
    – user535733
    Nov 26, 2019 at 14:52

2 Answers 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>

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]')"
  • 1
    1. How does this refer to the “third party software”? 2. This won’t work in a localized version of Ubuntu unless LC_ALL=C, for example, is used.
    – Melebius
    Nov 28, 2019 at 9:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.