Using apt list --installed
I got a list of installed packages. I have plenty of time and wanted to go through the list and see what's what. Are they all executable? I see that accountsservice is the first one on the list, but it's not executable as far as I can see. It just returns command not found
. Third on the list is adduser, and that is executable. I know that's a standalone command too.
Are some of them system applications that can only be called by the OS and cannot actually be executed individually?
Packages are not directly executable.
Packages contain groups of files. Some of those files are executable. Some are not.
Example: Let's look at the
hello
package.In this example, one file
/usr/bin/hello
in the package is executable. The other five files in the package are not executable.The executable
hello
has the same name as the packagehello
. That similarity is not required. Executable(s) and packages sometimes have different names.Execution depends on package type and its system:
In Linux or macOS: .so (shared objects) or .dylib (dynamic libraries) which are not directly executable but provide code for other programs.
In Windows: .dll (dynamic link libraries) and .exe (executables), but not all .exe files are meant to be run directly.