3

I cannot find documentation on some long, double-dash options of apt, upon which I stumbled with Bash's tab-completion.

$ apt install --<TAB><TAB>
--allow-change-held-packages   --fix-broken                   --purge
--allow-downgrades             --fix-missing                  --reinstall
--allow-insecure-repositories  --fix-policy                   --remove
--allow-remove-essential       --force-yes                    --show-progress
--allow-unauthenticated        --ignore-hold                  --show-upgraded
--arch-only                    --ignore-missing               --simulate
--assume-no                    --install-recommends           --solver
--assume-yes                   --install-suggests             --target-release
--auto-remove                  --no-install-recommends        --trivial-only
--download                     --no-install-suggests          --upgrade
--download-only                --only-upgrade                 --verbose-versions
--dry-run                      --print-uris

I have looked in

apt --help
man apt

but they only provide brief information on the main apt arguments, so I moved on to

man apt-get
man dpkg

where I found some of the long options, e.g. --simulate, --dry-run, --download-only. But others seem to be lacking, such as --upgrade, --solver and --fix-policy.

Is there some other manual page I am missing or should the missing options be considered undocumented?

1

1 Answer 1

1
    - new "--fix-policy" option to install all packages with unmet
      important dependencies (useful with --install-recommends to
      see what not-installed recommends are on the system)
  • Unfortunately I've been unable to find the documentation for --solver (which looks like an internal flag not meant to be used by the end user). From apt-private/private-cmndline.cc:
...
      addArg(0, "reinstall", "APT::Get::ReInstall", 0);
      addArg(0, "solver", "APT::Solver", CommandLine::HasArg);
      addArg(0, "planner", "APT::Planner", CommandLine::HasArg);
...
  • There's no such option as --upgrade - looks like it's been deprecated.

You can always peruse apt sources to find out more: https://salsa.debian.org/apt-team/apt/-/tree/master/

1

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .