I thought apt list
was for installed packages, but looks like it needs the --installed
flag for that. So what is the difference between it and apt search
. Is the former only looking in a local cache of available packages?
I thought apt list
was for installed packages, but looks like it needs the --installed
flag for that. So what is the difference between it and apt search
. Is the former only looking in a local cache of available packages?
This is where the manual is useful:
In plain English, with
apt search {criteria}
you can find packages that meet the criteria you set in their names, descriptions, or other metadata.apt list {criteria}
, however, gives you the option to list packages based on their names and whether they are already installed, currently upgradable, or simply exist (in your local copy of the package list cache).