{"id":425,"date":"2014-12-31T13:17:29","date_gmt":"2014-12-31T13:17:29","guid":{"rendered":"http:\/\/eltonoverip.com\/blog\/?p=425"},"modified":"2015-01-03T01:00:29","modified_gmt":"2015-01-03T01:00:29","slug":"cleaning-your-apt-cache","status":"publish","type":"post","link":"https:\/\/eltonoverip.com\/blog\/2014\/12\/cleaning-your-apt-cache\/","title":{"rendered":"Cleaning your Apt"},"content":{"rendered":"<p>My 16 GB Ubuntu partition has ran of out space. Disk usage analyzer claims that \/var\/cache\/apt is using 669 MB. Time to clean it up my apt with <code>apt-get clean<\/code>! Basically, apt-get clean removes .deb packages that apt caches when you install or update programs.<\/p>\n<pre><code>elton@laptop:\/var\/cache$ du -hs\r\n du: cannot read directory `.\/ldconfig': Permission denied\r\n du: cannot read directory `.\/lightdm\/dmrc': Permission denied\r\n <strong>743M<\/strong> .\r\n elton@laptop:\/var\/cache$ sudo !!\r\n sudo du -hs\r\n <strong>743M<\/strong> .\r\n elton@laptop:\/var\/cache$ sudo apt-get clean\r\n elton@laptop:\/var\/cache$ sudo du -hs\r\n <strong>105M<\/strong><\/code><\/pre>\n<p>A few other options:<br \/>\n<code><br \/>\napt-get autoclean<\/code> to remove partial packages from the system<br \/>\n<code>apt-get autoremove<\/code> to remove packages installed as dependencies after the original package is removed<\/p>\n","protected":false},"excerpt":{"rendered":"<p>My 16 GB Ubuntu partition has ran of out space. Disk usage analyzer claims that \/var\/cache\/apt is using 669 MB. Time to clean it up my apt with apt-get clean! Basically, apt-get clean removes .deb packages that apt caches when you install or update programs. elton@laptop:\/var\/cache$ du -hs du: cannot read directory `.\/ldconfig&#8217;: Permission denied [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,2,18],"tags":[],"class_list":["post-425","post","type-post","status-publish","format-standard","hentry","category-debian","category-linux","category-ubuntu"],"_links":{"self":[{"href":"https:\/\/eltonoverip.com\/blog\/wp-json\/wp\/v2\/posts\/425","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/eltonoverip.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/eltonoverip.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/eltonoverip.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/eltonoverip.com\/blog\/wp-json\/wp\/v2\/comments?post=425"}],"version-history":[{"count":5,"href":"https:\/\/eltonoverip.com\/blog\/wp-json\/wp\/v2\/posts\/425\/revisions"}],"predecessor-version":[{"id":434,"href":"https:\/\/eltonoverip.com\/blog\/wp-json\/wp\/v2\/posts\/425\/revisions\/434"}],"wp:attachment":[{"href":"https:\/\/eltonoverip.com\/blog\/wp-json\/wp\/v2\/media?parent=425"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/eltonoverip.com\/blog\/wp-json\/wp\/v2\/categories?post=425"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/eltonoverip.com\/blog\/wp-json\/wp\/v2\/tags?post=425"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}