commands

apt-get — simulate dependency transactions

APT command-line transaction tool. -s simulates without applying changes; --no-download prevents downloading packages. Results depend on available metadata and are not a guarantee of later execution. Use the specified distribution and fresh private workspace; no sudo.

Formal Syntax & Structure

linux syntaxlinux
apt-get -s --no-download install PACKAGE

Parameters & Attributes

NameTypeDescription
-soptionsimulate
--no-downloadoptiondo not download
PACKAGEoperandpackage name

Return Value

exit status and output

APT command-line transaction tool. -s simulates without applying changes; --no-download prevents downloading packages. Results depend on available metadata and are not a guarantee of later execution.

Working Example

Example Snippetlinux
apt-get -s --no-download install bash > plan.txtgrep -q '0 newly installed' plan.txt && printf 'no new packages planned\n'
Linux Reference