wiki:linux/Package management/apt

apt, dpkg, dpkg-reconfigure, update-alternatives

Install i386 package on amd64 machine

  1. Add architecture
# dpkg --add-architecture i386
# apt update
  1. Install i386-package with architecture-postfix
# apt install package_name:i386

apt-get and apt-cache not needed since version 1.0

apt-get, apt-cache lässt sich schon lange mit apt abkürzen

>= Debian 8<= Debian 7
Update package sourcesapt updateapt-get update
Search within package sourcesapt search foo barapt-cache search foo bar
Install packageapt install foo barapt-get install foo bar
Remove packageapt remove foo barapt-get remove foo bar
Upgrade systemapt upgradeapt-get dist-upgrade
Upgrade system including their dependenciesapt full-upgradeapt-get upgrade
Show package description etc.apt show fooapt-cache show foo
Edit source fileapt edit-sourcesvim /etc/apt/sources.list

insserv: warning: script '[SCRIPTNAME]' missing LSB tags and overrides

This message occurs during an upgrade- or install-process if a boot script inside /etc/init.d/ has invalid values within the special tags or has no special tags which are parsed from the insserv script. Maybe you've written a script inside /etc/init.d/ with no special tags?

Special tags within a boot script can look like these (/etc/init.d/cups):

# Provides:          cups
# Required-Start:    $syslog $remote_fs
# Required-Stop:     $syslog $remote_fs
# Should-Start:      $network avahi-daemon slapd nslcd
# Should-Stop:       $network
# X-Start-Before:    samba
# X-Stop-After:      samba
# Default-Start:     2 3 4 5
# Default-Stop:      1
# Short-Description: CUPS Printing spooler and server
# Description:       Manage the CUPS Printing spooler and server;
#                    make it's web interface accessible on http://localhost:631/
Last modified 3 years ago Last modified on May 25, 2016, 9:13:52 AM