LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

apt-sortpkgs

Sort package index files

TLDR

Sort a Packages file
$ apt-sortpkgs [Packages] > [Packages.sorted]
copy
Sort Sources file
$ apt-sortpkgs -s [Sources] > [Sources.sorted]
copy

SYNOPSIS

apt-sortpkgs [-s] file

DESCRIPTION

apt-sortpkgs sorts Debian package index files (Packages or Sources files) into a consistent order. This is useful for comparing files or ensuring reproducible output.The tool reads the index file, sorts packages alphabetically by name, and outputs the sorted version.

PARAMETERS

-s, --source

Treat input as Sources file instead of Packages
-o option
Set configuration option
-c file
Read additional configuration

INSTALL

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

CAVEATS

Primarily used for repository maintenance and comparison. Not needed for normal APT operation. Large files may consume significant memory.

HISTORY

apt-sortpkgs is part of the APT suite, useful for repository maintainers who need deterministic index file ordering.

SEE ALSO

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