Dpkg
Query installed packages,
format e.g.
dpkg-query -W--showformat=
formatDebian Reference Card'${Package}

Version 12 – Debian 12 ’Bookworm’ – 2023-03-22
https://www.debian.org/${Version}${Installed-Size}\n'dpkg--get-selections> filedpkg--set-selections< fileGetting Help
Read online help for every
man page or man
command and many
bash
configuration files.
command [--help,Brief help for most-h]
commands.
Find all documentation/usr/share/here, optional file
doc/package-name/ README.Debian contains
specifics.
Reference, manuals, FAQs,Web
HOWTOs, etc. at https:
documentation//www.debian.org/doc/
Mailing lists at
The community is always
https://lists.
helpful, search for users.
debian.org/
The Wiki atContains all kind of usefulhttps://wiki.
information.
debian.org/

Write package selections tofile.
Set package selections fromfile.

The Network
Interface configuration (if/etc/network/
not controlled via
interfaces
network-manager).
Start, stop network
if [up][down]interfaces according to thedevice
file above.
Show and manipulate
ip
network interfaces androuting, needs iproute2.
ssh -X user@hostLogin at another machine.
scp files
Copy files to other machine
user@host:path(and vice versa).

Installer
CD images
boot: expert

Or use a Live
imageBugs

Legal NoticeThis document may be used under the terms of the GNU
General Public License version 3 or higher. The license
text can be found at https://www.gnu.org/copyleft/gpl.html and /usr/share/common-licenses/GPL-3.
Copyright © 2004, 2010 W. Martin Borgert
Copyright © 2016, 2019, 2023 Holger Wansing
Made by: https://www.debian.org/doc/user-manuals#refcard

Installation
All information about it athttps://www.debian.org/
devel/debian-installer/
Download from https://www.debian.org/distrib/
E.g. to set up the network
w/o DHCP or to adapt
bootloader installation.
Containing the user-friendly
Calamares installer:
https://www.debian.org/
CD/live/

Bug Tracking at
https://bugs.
debian.org/

All about existing and fixedbugs.

Package specificSee https://bugs.debian.
org/package-name/, usewnpp to ask for new
packages.

Bugs
Report a bug by e-mail.
Instructions at
https://www.debian.org/
Bugs/Reporting

reportbug
ReportingConfiguration
All system configuration/etc/
files are under directory/etc/.
Default text editor. May be
editor files
nano, emacs, vi, joe.
CUPS at http:Browser interface to//hostname:631
printing system.
Reconfigure a package, e.g.
dpkg-reconfigure
keyboard-configuration
package-name(keyboard), locales(localization).
updateManage command
alternatives
alternatives.
options
After changing
update-grub/etc/default/grub.

Daemons and Systemsystemctl
restartname.service
systemctl stop
name.service
systemctl start
name.service
systemctl halt
systemctl reboot
systemctl poweroff
systemctl suspend
systemctl
hibernate/var/log//etc/default/

Restart a service, systemdaemon.
Stop a service, systemdaemon.
Start a service, systemdaemon.
Halts system.
Reboots system.
Shuts down system.
Suspends system.

Important Shell Commands
gzip, bzip2, xz [-d]Compress, uncompress files.
files
pager files
Show contents of files.
ls [files]
List files.
mkdir
Create directories.
directory-names
mv file1 file2
Move, rename files.
rm filesRemove files.
rmdir dirs
Remove empty directories.
Create (c), extract (x), listtar [c][x][t][z][j][J]table of (t) archive file, z for-f file.tar [files].gz, j for .bz2, J for .xz.
find directories
Find files like -name nameexpressions
or -size +1000, etc.
grep
search-string
Find search-string in files.
files
Create a symbolic link to aln -s file linkfile.
ps [options]Show current processes.
Send signal to process (e.g.
kill [-9] PID
terminate it). Use ps forPID.
Become another user, e.g.
su - [username]root.
Execute a command as root
sudo command
as normal user, see/etc/sudoers.
Overwrite file with output ofcommand > filecommand.
Append output of command
command >> file
to file.
Use output of command 1 as
cmd1 | cmd2
input of command 2.
Use file as input forcommand < filecommand.

Important Shell Commands
cat files
Print files to screen.
cd directory
Change to directory.
cp files dest
Copy files and directories.
echo string
Echo string to screen.

apt install
package-names
apt upgrade

apt full-upgrade
apt remove
package-names
apt autoremove
apt depends
package-nameapt rdepends
package-nameapt-file updateapt-file search
file-nameapt-file list
package-nameaptitudesynaptic

dpkg -l [names]
dpkg -I pkg.deb
dpkg -c pkg.deb
dpkg -S filename

Hibernates system.
All log files are under thisdirectory.
Default values for many
daemons and services.

apt show -a
package-name

apt update

apt searchsearch-string
apt list -a
package-name

APT
Update packages listingsfrom package repositories
as listed in/etc/apt/sources.list.
Required whenever that fileor the contents of therepositories change.
Search packages anddescriptions forsearch-string.
Show versions and archive
areas of available packages.

dpkg -i pkg.deb
dpkg -V[package-names]
dpkg-divert[options] filedpkg --compareversions v1 gt
v2

APTShow package informationincl. description.
Install packages from
repositories with all
dependencies.
Install newest versions of all
packages currently
installed.
Like apt upgrade, but withadvanced conflict
resolution.
Remove packages.
Remove packages that noother packages depend on.
List all packages needed by
the one given.
List all packages that need
the one given.
Update content listingsfrom package repositories,
see apt update.
Search packages for file.
List contents of a package.
Console interface to APT,needs aptitude.
GUI interface to APT, needs
synaptic.

Dpkg
List packages.
Show package information.
List contents of package file.
Show which package a filebelongs to.
Install package files.
Audit check sums of
installed packages.
Override a package’s
version of a file.
Compare version numbers;
view results with echo $?.