Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. http://www.configserverfirewall.com/ubuntu-linux/install-cockpit-ubuntu-16-04/

Software update / management

CommandPathPackage NamePurpose / Notes
apt update 
  update repository metadata
apt upgrade
  install all pending updates
apt-cache policy
  list repository sources
 
/var/log/apt/ log directory containing 'history.log' and 'term.log' log files
dpkg-query --list
  list all installed packages
dpkg-query --listfiles <package-name>
  list all files owned by <package-name>
dpkg-query --search <filename-pattern>
  find out which installed package owns a filename
apt-file search <filename-pattern>
 apt-filefind out which package would install <filename-pattern>.
package does not need to be installed already
aptitude install <package-name>
apt install <package-name>
apt-get install <package-name>
  aptitudeinstall <package-name{ 
tip: use tab completion for actions and package names
apt show <package-name>
aptitude show <package-name>
  show details about <package-name>, including repository
debconf-show <package-name>
  show configuration options and current values of <package-name>
dpkg-reconfigure <package-name>
  

reconfigures packages after they have already been installed.
it will ask configuration questions, much
like when the package was first installed.

aptitude changelog <package-name>
  displays the changelog for <package-name> 
aptitude search <package-name-pattern>
  search for packages which match <package-name-pattern>
 aptitude download <package-name>
  downloads the .deb file for the given package to the current directory
aptitude --simulate <action> 
  

print the actions that would normally be performed, but don't actually perform them.
this does not require root privileges.

man deb
  man page describing deb package format



Info

Content by Label
showLabelsfalse
max5
spacesSCS
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel = "kb-how-to-article" and type = "page" and space = "SCS"
labelskb-how-to-article

...