{"id":312,"date":"2021-03-06T19:21:54","date_gmt":"2021-03-06T19:21:54","guid":{"rendered":"https:\/\/maboc.nl\/?p=312"},"modified":"2021-03-07T12:34:07","modified_gmt":"2021-03-07T12:34:07","slug":"debian-apt-commands","status":"publish","type":"post","link":"https:\/\/maboc.nl\/?p=312","title":{"rendered":"Debian apt commands"},"content":{"rendered":"<p>I just installed a Debian machine.<\/p>\n<p>And since I&#8217;m a very longtime RedHat\/Fedora man now I&#8217;m struggling with the commands to install stuff.<br \/>\nHere are my notes:<\/p>\n<table style=\"border-collapse: collapse; width: 100%;\">\n<tbody>\n<tr>\n<td style=\"width: 50%;\">apt update<\/td>\n<td style=\"width: 50%;\">Updates the meta-data and repositories<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 50%;\">apt upgrade<\/td>\n<td style=\"width: 50%;\">Actually upgrades packages who need upgrading<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 50%;\">apt install &lt;package&gt;<\/td>\n<td style=\"width: 50%;\">Installs a package<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 50%;\">apt list [package]<\/td>\n<td style=\"width: 50%;\">Displays all packages known to apt<\/p>\n<p>Or shows whether a package is installed<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 50%;\">apt remove<\/td>\n<td style=\"width: 50%;\">Removes the mentioned package<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 50%;\">apt-file<\/td>\n<td style=\"width: 50%;\">searches which pacakage supplies a program<\/p>\n<p>(before running run apt-file update)<\/p>\n<p>(I first had to install apt-file : apt install apt-file)<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I just installed a Debian machine. And since I&#8217;m a very longtime RedHat\/Fedora man now I&#8217;m struggling with the commands [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[53],"tags":[55,54],"class_list":["post-312","post","type-post","status-publish","format-standard","hentry","category-debian","tag-apt","tag-debian"],"_links":{"self":[{"href":"https:\/\/maboc.nl\/index.php?rest_route=\/wp\/v2\/posts\/312","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/maboc.nl\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/maboc.nl\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/maboc.nl\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/maboc.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=312"}],"version-history":[{"count":7,"href":"https:\/\/maboc.nl\/index.php?rest_route=\/wp\/v2\/posts\/312\/revisions"}],"predecessor-version":[{"id":320,"href":"https:\/\/maboc.nl\/index.php?rest_route=\/wp\/v2\/posts\/312\/revisions\/320"}],"wp:attachment":[{"href":"https:\/\/maboc.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=312"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/maboc.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=312"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/maboc.nl\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=312"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}