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 PACKAGEParameters & Attributes
| Name | Type | Description |
|---|---|---|
| -s | option | simulate |
| --no-download | option | do not download |
| PACKAGE | operand | package 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'