apt-cache dump --installed doesn't work, it lists uninstalled packages as well.
I want to list the install packages each by one line, with the installed version number.
|
feedback
|
|
try it lists you the packages, version and a short description. | |||
|
feedback
|
|
Simplest, but might show a few extraneous packages and truncates long package names and version numbers:
To list only correctly installed packages and not truncate names:
To get more control over the output format, you can use
| |||
|
feedback
|
|
To list the names of each installed package, type as a superuser :
You will get an output like this :
To remove the unecessary "install" character string, you can use sed :
And if yout want to save it to a file called InstalledPackages, you type this :
| ||||
|
feedback
|