milomak wrote:I am intrigued by this command - aptitude search ~U -F"%c%M %p# %15v# %15V# %d"
what is it actually doing?
It's just displaying any packages that are upgradable (that's the ~U). the rest of the command is simply formatting the output to give me some info. I should probably drop the %c, since any package that's going to be listed will definitely already be installed
(although it's could conceivably be a C, H or B I suppose))
Anyhow the -F is format, and is followed by the format string (in quotes)
%c A single-character flag summarizing the current state of the package
- Code: Select all
i - the package is installed and all its dependencies are satisfied.
c - the package was removed, but its configuration files are still present.
p - the package and all its configuration files were removed, or the package was never installed.
v - the package is virtual.
B - the package has broken dependencies.
u - the package has been unpacked but not configured.
C - half-configured: the package's configuration was interrupted.
H - half-installed: the package's installation was interrupted.
%M If the package is automatically installed, outputs “A”; otherwise, outputs nothing.
%p package name
%v currently installed version
%V version that will be installed
the # and 15 are field modifiers that effect the displayed width and are there so I don't get the field cutoff. See the aptitude manual for more details.