Sei sulla pagina 1di 2

Dpkg

dpkg --get-
Write package selections to
selections >
le.
file DebianGNU/Linux Reference Card
dpkg --set- Version 9.0 - Debian 9 Stretch 2016-07-09
Set package selections from
selections < http://www.debian.org/
le.
file
Getting Help
Read online help for every
The Network man page or man
command and many
/etc/network/ Network interface bash
conguration les.
interfaces conguration. command [--help, Brief help for most
Start, stop network -h] commands.
ifup, ifdown
interfaces according to les Find all documentation
[device]
above. /usr/share/ here, optional le
Show and manipulate doc/package-name/ README.Debian contains
/sbin/ip network interfaces and specics.
routing, needs iproute. Reference, manuals, FAQs,
ssh -X user@host Login at other machine. Web
HOWTOs, etc. at http://
scp files user@ Copy les to other machine documentation
www.debian.org/doc/
host:path (and vice versa). Mailing lists at
The community is always
http://lists.
helpful, search for users.
debian.org/
The Wiki at http:
Contains all kind of useful
//wiki.debian.
information.
org/

Installation
All information about it at
Installer http://www.debian.org/
devel/debian-installer/
Download from http://
CD images
www.debian.org/distrib/
E.g. to set up the network
boot:expert w/o DHCP or using LILO
instead of GRUB.

Bugs
Bug Tracking at
All about existing and xed
http://bugs.
bugs.
debian.org/
Legal Notice See http://bugs.debian.
This document may be used under the terms of the org/package-name/, use
Package specic
GNU General Public License version 3 or higher. The li- wnpp to ask for new
cense text can be found at http://www.gnu.org/copyleft/- packages.
gpl.html and /usr/share/common-licenses/GPL-3. reportbug Report a bug by e-mail.
Copyright 2004, 2010 W. Martin Borgert Instructions at http://www.
Copyright 2016 Holger Wansing Reporting debian.org/Bugs/
Made by: http://www.debian.org/doc/user-manuals#refcard Reporting
Conguration Important Shell Commands APT
All system conguration rm files Remove les. Install newest versions of all
/etc/ les are under directory rmdir dirs Remove empty directories. apt upgrade packages currently
/etc/. tar [c][x][t][z][j][J] Create, eXtract, list Table of installed.
Default text editor. May be -f file.tar archive le, z for .gz, j for Like apt upgrade, but with
editor files
nano, emacs, vi, joe. [files] .bz2, J for .xz. apt full-upgrade advanced conict
CUPS at http:// Browser interface to nd directories Find les like -name name resolution.
hostname:631 printing system. expressions or -size +1000, etc. apt remove Remove packages with all
Recongure a package, e.g. grep search- package-names needed packages.
Find search-string in les.
dpkg-recongure keyboard-configuration string files Remove packages that no
apt autoremove
package-name (keyboard), locales Create a symbolic link to a other packages depend on.
ln -s file link
(localization). le. apt depends List all packages needed by
update- ps [options] Show current processes. package-name the one given.
Manage command
alternatives Send signal to process (e.g. apt rdepends List all packages that need
alternatives.
options kill [-9] PID terminate it). Use ps for package-name the one given.
After changing PID. Update content listings
update-grub
/etc/default/grub. Become another user, e.g. apt-le update from package repositories,
su - [username]
root. see apt update.
Execute a command as root apt-le search
Search packages for le.
Daemons and System sudo command as normal user, see file-name
systemctl /etc/sudoers. apt-le list
Restart a service, system List contents of a package.
restart Overwrite le with output of package-name
daemon. command > file
name.service command. Installs packages
systemctl stop Stop a service, system Append output of command automatically if needed, can
command >> file auto-apt
name.service daemon. to le. replace apt-le, needs
systemctl start Start a service, system Use output of command 1 as auto-apt.
cmd1 | cmd2
name.service daemon. input of command 2. Console interface to APT,
aptitude
systemctl halt Halts system. Use le as input for needs aptitude.
command < file
systemctl reboot Reboots system. command. GUI interface to APT, needs
synaptic
systemctl powero Shuts down system. synaptic.
systemctl suspend Suspends system.
systemctl APT
Hibernates system.
hibernate Update packages listings Dpkg
All log les are under this from package repositories dpkg -l [names] List packages.
/var/log/
directory. as listed in dpkg -I pkg.deb Show package information.
Default values for many apt update /etc/apt/sources.list. dpkg -c pkg.deb List contents of package le.
/etc/default/
daemons and services. Required whenever that le Show which package a le
dpkg -S filename
or the contents of the belongs to.
repositories change. dpkg -i pkg.deb Install package les.
Important Shell Commands Search packages and Audit check sums of
apt search
cat files Print les to screen. descriptions for search- debsums installed packages, needs
search-string
cd directory Change to directory. string. debsums.
cp files dest Copy les and directories. apt list -a Show versions and priorities dpkg-divert Override a packages
echo string Echo string to screen. package-name of available packages. [options] file version of a le.
gzip, bzip2, xz [-d] apt show Show package information dpkg --compare-
Compress, uncompress les. Compare version numbers,
files package-name incl. description. versions v1 gt
check with echo $?.
pager files Show contents of les. Show package v2
apt show -a
ls [files] List les. dependencies (needed Query installed packages,
package-name dpkg-query -W
mkdir directory- packages). format e.g. ${Package}
Create directories. --showformat=
names Install packages from ${Version}
apt install format
mv file1 file2 Move, rename les. repositories with all ${Installed-Size}\n.
package-names
dependencies.

Potrebbero piacerti anche