{"id":3405,"date":"2010-07-25T03:13:05","date_gmt":"2010-07-25T07:13:05","guid":{"rendered":"http:\/\/g33kinfo.com\/info\/?p=3405"},"modified":"2010-07-25T03:13:05","modified_gmt":"2010-07-25T07:13:05","slug":"agt-get-secrets","status":"publish","type":"post","link":"https:\/\/g33kinfo.com\/info\/agt-get-secrets\/","title":{"rendered":"agt-get secrets"},"content":{"rendered":"<p>From <a href=\"http:\/\/blogs.pcworld.co.nz\/pcworld\/tux-love\/2010\/07\/hidden_linux_agtget_secrets.html\" target=\"_blank\" rel=\"noopener noreferrer\">blogs.pcworld.co.nz<\/a><\/p>\n<p>Hidden Linux : agt-get secrets<\/p>\n<p>apt-get is the package handling utility behind Debian-based Linux systems such as Ubuntu, Mint and Mepis. You may be using it \u2018by proxy\u2019 via GUI-based package managers such as Synaptic, but hardened Linux users tend to prefer the command line &#8211; especially as the latter has a couple of neat tricks up its sleeve.<\/p>\n<p>(Not that if you\u2019re not a super-user you\u2019ll need to prefix the following commands with sudo &#8211; well, all but the last one &#8230;)<\/p>\n<p>The basics<\/p>\n<p><code>apt-get update<\/code><br \/>\nResynchronise installed packages with their sources. (Always do this before an upgrade.)<\/p>\n<p><code>apt-get upgrade<\/code><br \/>\nInstall the newest version of all packages installed on the system.<\/p>\n<p><code>apt-get dist-upgrade<\/code><br \/>\nUpgrade to the latest version of your distribution.<\/p>\n<p><code>apt-get install xxx yyy zzz<\/code><br \/>\nInstall programs xxx, yyy and zzz along with all their dependencies.<\/p>\n<p><code>apt-get remove xxx yyy zzz<\/code><br \/>\nRemove programs xxx, yyy and zzz.<\/p>\n<p><code>apt-get purge xxx yyy zzz<\/code><br \/>\nRemove programs xxx, yyy and zzz and delete any configuration files that they used.<\/p>\n<p><code>apt-get check<\/code><br \/>\nUpdate the package cache and check for any broken dependencies.<\/p>\n<p><code>apt-get clean <\/code><br \/>\nClean out retrieved package files.<\/p>\n<p><code>apt-get autoclean <\/code><br \/>\nClean out retrieved package files, but only those that are no longer needed.<\/p>\n<p><code>apt-get autoremove <\/code><br \/>\nRemove any packages that were installed to satisfy dependencies but are no longer required.<\/p>\n<p>Advanced stuff<br \/>\nSo much for the basics, what about those neat tricks I mentioned? Well, did you know you can use apt-get to get a package\u2019s source code?<\/p>\n<p><code>apt-get source xxx <\/code><br \/>\nRetrieve source files for package xxx.<\/p>\n<p>Or its build dependencies?<\/p>\n<p><code>apt-get build-dep xxx <\/code><br \/>\nGet all the dependencies needed to build package xxx.<\/p>\n<p>Or that you could get it to fetch and build the package for you?<\/p>\n<p><code>apt-get source xxx -b<\/code><br \/>\nFetch the source code then compile it. (The -b switch means \u201dbuild it\u201e.)<\/p>\n<p>The result with be a .deb package which you can install using the Debian package manager command:<\/p>\n<p><code>dpkg -i xxx.deb<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>From blogs.pcworld.co.nz Hidden Linux : agt-get secrets apt-get is the package handling utility behind Debian-based Linux systems such as Ubuntu, Mint and Mepis. You may be using it \u2018by proxy\u2019 via GUI-based package managers such as Synaptic, but hardened Linux users tend to prefer the command line &#8211; especially as the latter has a couple&#8230; <\/p>\n<div class=\"read-more navbutton\"><a href=\"https:\/\/g33kinfo.com\/info\/agt-get-secrets\/\">Read More<i class=\"fa fa-angle-double-right\"><\/i><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[],"class_list":["post-3405","post","type-post","status-publish","format-standard","hentry","category-info"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>agt-get secrets - Linux Shtuff<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/g33kinfo.com\/info\/agt-get-secrets\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"agt-get secrets - Linux Shtuff\" \/>\n<meta property=\"og:description\" content=\"From blogs.pcworld.co.nz Hidden Linux : agt-get secrets apt-get is the package handling utility behind Debian-based Linux systems such as Ubuntu, Mint and Mepis. You may be using it \u2018by proxy\u2019 via GUI-based package managers such as Synaptic, but hardened Linux users tend to prefer the command line &#8211; especially as the latter has a couple... Read More\" \/>\n<meta property=\"og:url\" content=\"https:\/\/g33kinfo.com\/info\/agt-get-secrets\/\" \/>\n<meta property=\"og:site_name\" content=\"Linux Shtuff\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/fb.me\/g33kinf0\" \/>\n<meta property=\"article:author\" content=\"https:\/\/fb.me\/g33kinf0\" \/>\n<meta property=\"article:published_time\" content=\"2010-07-25T07:13:05+00:00\" \/>\n<meta name=\"author\" content=\"g33kadmin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/drsinger1111\" \/>\n<meta name=\"twitter:site\" content=\"@drsinger1111\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/agt-get-secrets\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/agt-get-secrets\\\/\"},\"author\":{\"name\":\"g33kadmin\",\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/#\\\/schema\\\/person\\\/c022e4c40b13ea1b678e6f020756f547\"},\"headline\":\"agt-get secrets\",\"datePublished\":\"2010-07-25T07:13:05+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/agt-get-secrets\\\/\"},\"wordCount\":288,\"publisher\":{\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/#\\\/schema\\\/person\\\/c022e4c40b13ea1b678e6f020756f547\"},\"articleSection\":[\"General Info\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/agt-get-secrets\\\/\",\"url\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/agt-get-secrets\\\/\",\"name\":\"agt-get secrets - Linux Shtuff\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/#website\"},\"datePublished\":\"2010-07-25T07:13:05+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/agt-get-secrets\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/g33kinfo.com\\\/info\\\/agt-get-secrets\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/agt-get-secrets\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"agt-get secrets\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/#website\",\"url\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/\",\"name\":\"Linux Shtuff\",\"description\":\"Because I have CRS Syndrome...\",\"publisher\":{\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/#\\\/schema\\\/person\\\/c022e4c40b13ea1b678e6f020756f547\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/#\\\/schema\\\/person\\\/c022e4c40b13ea1b678e6f020756f547\",\"name\":\"g33kadmin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/wp-content\\\/uploads\\\/2022\\\/07\\\/minion-researchA.gif\",\"url\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/wp-content\\\/uploads\\\/2022\\\/07\\\/minion-researchA.gif\",\"contentUrl\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/wp-content\\\/uploads\\\/2022\\\/07\\\/minion-researchA.gif\",\"width\":512,\"height\":512,\"caption\":\"g33kadmin\"},\"logo\":{\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/wp-content\\\/uploads\\\/2022\\\/07\\\/minion-researchA.gif\"},\"description\":\"I am a g33k, Linux blogger, developer, student and Tech Writer for Liquidweb.com\\\/kb. My passion for all things tech drives my hunt for all the coolz. I often need a vacation after I get back from vacation....\",\"sameAs\":[\"https:\\\/\\\/thelinuxreport.com\",\"https:\\\/\\\/fb.me\\\/g33kinf0\",\"https:\\\/\\\/x.com\\\/https:\\\/\\\/twitter.com\\\/drsinger1111\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"agt-get secrets - Linux Shtuff","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/g33kinfo.com\/info\/agt-get-secrets\/","og_locale":"en_US","og_type":"article","og_title":"agt-get secrets - Linux Shtuff","og_description":"From blogs.pcworld.co.nz Hidden Linux : agt-get secrets apt-get is the package handling utility behind Debian-based Linux systems such as Ubuntu, Mint and Mepis. You may be using it \u2018by proxy\u2019 via GUI-based package managers such as Synaptic, but hardened Linux users tend to prefer the command line &#8211; especially as the latter has a couple... Read More","og_url":"https:\/\/g33kinfo.com\/info\/agt-get-secrets\/","og_site_name":"Linux Shtuff","article_publisher":"https:\/\/fb.me\/g33kinf0","article_author":"https:\/\/fb.me\/g33kinf0","article_published_time":"2010-07-25T07:13:05+00:00","author":"g33kadmin","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/drsinger1111","twitter_site":"@drsinger1111","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/g33kinfo.com\/info\/agt-get-secrets\/#article","isPartOf":{"@id":"https:\/\/g33kinfo.com\/info\/agt-get-secrets\/"},"author":{"name":"g33kadmin","@id":"https:\/\/g33kinfo.com\/info\/#\/schema\/person\/c022e4c40b13ea1b678e6f020756f547"},"headline":"agt-get secrets","datePublished":"2010-07-25T07:13:05+00:00","mainEntityOfPage":{"@id":"https:\/\/g33kinfo.com\/info\/agt-get-secrets\/"},"wordCount":288,"publisher":{"@id":"https:\/\/g33kinfo.com\/info\/#\/schema\/person\/c022e4c40b13ea1b678e6f020756f547"},"articleSection":["General Info"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/g33kinfo.com\/info\/agt-get-secrets\/","url":"https:\/\/g33kinfo.com\/info\/agt-get-secrets\/","name":"agt-get secrets - Linux Shtuff","isPartOf":{"@id":"https:\/\/g33kinfo.com\/info\/#website"},"datePublished":"2010-07-25T07:13:05+00:00","breadcrumb":{"@id":"https:\/\/g33kinfo.com\/info\/agt-get-secrets\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/g33kinfo.com\/info\/agt-get-secrets\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/g33kinfo.com\/info\/agt-get-secrets\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/g33kinfo.com\/info\/"},{"@type":"ListItem","position":2,"name":"agt-get secrets"}]},{"@type":"WebSite","@id":"https:\/\/g33kinfo.com\/info\/#website","url":"https:\/\/g33kinfo.com\/info\/","name":"Linux Shtuff","description":"Because I have CRS Syndrome...","publisher":{"@id":"https:\/\/g33kinfo.com\/info\/#\/schema\/person\/c022e4c40b13ea1b678e6f020756f547"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/g33kinfo.com\/info\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/g33kinfo.com\/info\/#\/schema\/person\/c022e4c40b13ea1b678e6f020756f547","name":"g33kadmin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/g33kinfo.com\/info\/wp-content\/uploads\/2022\/07\/minion-researchA.gif","url":"https:\/\/g33kinfo.com\/info\/wp-content\/uploads\/2022\/07\/minion-researchA.gif","contentUrl":"https:\/\/g33kinfo.com\/info\/wp-content\/uploads\/2022\/07\/minion-researchA.gif","width":512,"height":512,"caption":"g33kadmin"},"logo":{"@id":"https:\/\/g33kinfo.com\/info\/wp-content\/uploads\/2022\/07\/minion-researchA.gif"},"description":"I am a g33k, Linux blogger, developer, student and Tech Writer for Liquidweb.com\/kb. My passion for all things tech drives my hunt for all the coolz. I often need a vacation after I get back from vacation....","sameAs":["https:\/\/thelinuxreport.com","https:\/\/fb.me\/g33kinf0","https:\/\/x.com\/https:\/\/twitter.com\/drsinger1111"]}]}},"_links":{"self":[{"href":"https:\/\/g33kinfo.com\/info\/wp-json\/wp\/v2\/posts\/3405","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/g33kinfo.com\/info\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/g33kinfo.com\/info\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/g33kinfo.com\/info\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/g33kinfo.com\/info\/wp-json\/wp\/v2\/comments?post=3405"}],"version-history":[{"count":0,"href":"https:\/\/g33kinfo.com\/info\/wp-json\/wp\/v2\/posts\/3405\/revisions"}],"wp:attachment":[{"href":"https:\/\/g33kinfo.com\/info\/wp-json\/wp\/v2\/media?parent=3405"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/g33kinfo.com\/info\/wp-json\/wp\/v2\/categories?post=3405"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/g33kinfo.com\/info\/wp-json\/wp\/v2\/tags?post=3405"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}