LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

apt-mark

Change the install state of packages.

TLDR

Mark a package as automatically installed
$ sudo apt-mark auto [package]
copy
Mark a package as manually installed
$ sudo apt-mark manual [package]
copy
Hold a package at its current version
$ sudo apt-mark hold [package]
copy
Allow a package to be updated again
$ sudo apt-mark unhold [package]
copy
Show manually installed packages
$ apt-mark showmanual
copy
Show automatically installed packages
$ apt-mark showauto
copy
Show held packages
$ apt-mark showhold
copy

SYNOPSIS

apt-mark [options] command package...

DESCRIPTION

apt-mark is a utility to change the status of installed packages. It can mark packages as automatically installed (making them candidates for autoremove), manually installed, or held at their current version.

PARAMETERS

auto package

Mark package as automatically installed
manual package
Mark package as manually installed
hold package
Hold package at current version, preventing upgrades
unhold package
Remove hold, allowing package to be upgraded
showmanual
Show list of manually installed packages
showauto
Show list of automatically installed packages
showhold
Show list of held packages
showinstall
Show list of packages marked as install
showremove
Show list of packages marked for removal
showpurge
Show list of packages marked for purge
minimize-manual
Mark all dependency packages as auto, keeping only directly needed packages as manual
-f, --file filename
Read/write package stats from the specified filename instead of default location
-v, --verbose
Verbose output
-c, --config-file
Specify a configuration file to use
-o, --option
Set a configuration option (syntax: -o Foo::Bar=bar)

INSTALL

sudo apt install apt
copy
sudo dnf install apt
copy
sudo pacman -S apt
copy
sudo apk add apt
copy
brew install apt
copy
nix profile install nixpkgs#apt
copy

CAVEATS

Holding packages may cause dependency issues during system upgrades. Use sparingly.

HISTORY

Part of the APT (Advanced Package Tool) suite developed for Debian-based systems.

SEE ALSO

apt(8), apt-get(8), dpkg(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid