{"id":10315,"date":"2019-07-29T01:54:48","date_gmt":"2019-07-29T01:54:48","guid":{"rendered":"https:\/\/www.techolac.com\/linux\/can-i-delete-var-cache-apt-archives-for-ubuntu-debian-linux\/"},"modified":"2019-07-29T01:56:02","modified_gmt":"2019-07-29T01:56:02","slug":"can-i-delete-var-cache-apt-archives-for-ubuntu-debian-linux","status":"publish","type":"post","link":"https:\/\/www.techolac.com\/linux\/can-i-delete-var-cache-apt-archives-for-ubuntu-debian-linux\/","title":{"rendered":"Can I delete \/var\/cache\/apt\/archives for Ubuntu\/Debian Linux?"},"content":{"rendered":"<div>\n<div class=\"my_story\"><img decoding=\"async\" src=\"https:\/\/techolac.com\/wp-content\/uploads\/2019\/07\/file-manager.png\" alt=\"\" border=\"0\" \/><\/div>\n<p><span class=\"drop_cap\">I<\/span> noticed that \/var\/cache\/apt\/archives\/ taking lots of disk space on my AWS EC2 cloud server powered by Debian Linux. Can I delete \/var\/cache\/apt\/archives\/ folder? Is it safe to remove all files? Do we absolutely necessary to keep all these files?<br \/>\n<span id=\"more-148127\"><\/span><br \/>\nAPT is a set of command found on Debian based operating systems. One can use apt-get command\/apt command\/dpkg command and others to manage the installation, update, and removal of packages. Another tool called apt-cache gives read-only access to the APT package cache. One can use apt-cache to gather useful information from software package metadata. This page explains the usage of \/var\/cache\/apt\/archives\/ directory and how to safely delete \/var\/cache\/apt\/archives files stored in Ubuntu or Debian Linux to free up occupying enormous space.<\/p>\n<p>&nbsp;<\/p>\n<div id=\"blocker7a1003a\" style=\"display: none; margin-bottom: 30px; padding: 20px 10px; background: #ffcccc;\">\n<h5>Adblock detected \ud83d\ude31<\/h5>\n<div style=\"text-align: center; border-radius: 5px;\">My website is made possible by displaying online advertisements to my visitors. I get it! Ads are annoying but they help keep this website running. It is hard to keep the site running and producing new content when so many people block ads. Please consider donating money to the nixCraft via <strong>PayPal<\/strong>\/<strong>Bitcoin<\/strong>, or become a <strong>supporter using Patreon<\/strong>.<\/div>\n<\/div>\n<p>&nbsp;<\/p>\n<h2>Command to delete \/var\/cache\/apt\/archives in Ubuntu\/Debian Linux<\/h2>\n<p>All .deb packages are retrieved from the Internet and stored in \/var\/cache\/apt\/archives\/ directory. Similarly, \/var\/cache\/apt\/archives\/partial\/ directory work as storage area for package files in transit. To see files, run:<br \/>\n<code>cd \/var\/cache\/apt\/archives\/<br \/>\nls -l<br \/>\nls -l | tail -10<\/code><br \/>\nUse the du command to estimate file space usage and summarize disk usage of \/var\/cache\/apt\/archives\/, recursively for directories.<br \/>\n<code>sudo du -ch \/var\/cache\/apt\/archives\/<\/code><br \/>\nSample outputs:<\/p>\n<pre>4.0K\t\/var\/cache\/apt\/archives\/partial\r\n128M\t\/var\/cache\/apt\/archives\/\r\n128M\ttotal\r\n<\/pre>\n<p>On my personal system 128M disk spaced used by the folder. In other words, APTs cached files are located in \/var\/cache\/apt\/archives\/ directory.<\/p>\n<h3>Is it safe to remove all files?<\/h3>\n<p>Yes. See below how to erase those files.<\/p>\n<h3>Do we absolutely necessary to keep all these files?<\/h3>\n<p>No. See below how to free up disk space.<\/p>\n<h2>apt-get\/apt high level package management utility<\/h2>\n<p>Let us see some common examples.<\/p>\n<h3>Installing a package<\/h3>\n<p><code>sudo apt install {package-name}<\/code><br \/>\nFor example, install squid3 package, enter:<br \/>\n<code>sudo apt install squid3<\/code><br \/>\nYou will see downloaded file in \/var\/cache\/apt\/archives\/<br \/>\n<code>ls -l \/var\/cache\/apt\/archives\/squid*<\/code><\/p>\n<figure id=\"attachment_148128\" class=\"wp-caption aligncenter\" style=\"width: 300px;\" aria-describedby=\"caption-attachment-148128\"><img decoding=\"async\" class=\"size-medium wp-image-148128\" src=\"https:\/\/techolac.com\/wp-content\/uploads\/2019\/07\/Clear-the-APT-cache-command-300x156.png\" sizes=\"(max-width: 300px) 85vw, 300px\" srcset=\"https:\/\/techolac.com\/wp-content\/uploads\/2019\/07\/Clear-the-APT-cache-command-300x156.png 300w, https:\/\/techolac.com\/wp-content\/uploads\/2019\/07\/Clear-the-APT-cache-command-1024x532.png 1024w, https:\/\/techolac.com\/wp-content\/uploads\/2019\/07\/Clear-the-APT-cache-command.png 1174w\" alt=\"Clear the APT cache command\" width=\"300\" height=\"156\" \/><figcaption id=\"caption-attachment-148128\" class=\"wp-caption-text\">Click to enlarge<\/figcaption><\/figure>\n<h3>Removing a package<\/h3>\n<p>To remove a package without removing its confi files, use:<br \/>\n<code>sudo apt remove {package-name}<\/code><br \/>\nIn order to remove a package and its config files, run:<br \/>\n<code>sudo apt remove --purge {package-name}<\/code><br \/>\nIn this example, delete the nginx and its configuration files:<br \/>\n<code>sudo apt remove --purge nginx<\/code><br \/>\nHowever, this will not remove any downloaded files from the \/var\/cache\/apt\/archives\/ directory.<\/p>\n<h3>How to clear the APT cache and delete everything from \/var\/cache\/apt\/archives\/<\/h3>\n<p>The clean command clears out the local repository of retrieved package files. It removes everything but the lock file from \/var\/cache\/apt\/archives\/ and \/var\/cache\/apt\/archives\/partial\/. The syntax is:<br \/>\n<code>sudo apt clean<\/code><br \/>\nOR<br \/>\n<code>sudo apt-get clean<\/code><\/p>\n<h3>Delete all useless files from the APT cache<\/h3>\n<p>The syntax is as follows to delete \/var\/cache\/apt\/archives\/:<br \/>\n<code>sudo apt autoclean<\/code><br \/>\nOR<br \/>\n<code>sudo apt-get autoclean<\/code><br \/>\nFrom the apt-get man page:<\/p>\n<blockquote><p>Like clean, autoclean clears out the local repository of retrieved package files. The difference is that it only removes package files that can no longer be downloaded, and are largely useless. This allows a cache to be maintained over a long period without it growing out of control. The configuration option APT::Clean-Installed will prevent installed packages from being erased if it is set to off.<\/p><\/blockquote>\n<p>Verify that files are removed from \/var\/cache\/apt\/archives\/ safely using the du command:<br \/>\n<code>sudo du -ch \/var\/cache\/apt\/archives\/<\/code><br \/>\n<img decoding=\"async\" class=\"aligncenter size-full wp-image-148129\" src=\"https:\/\/techolac.com\/wp-content\/uploads\/2019\/07\/Delete-var-cache-apt-archives-to-clean-up-apt-cache-on-Debian-or-Ubuntu-Linux.png\" sizes=\"(max-width: 599px) 85vw, 599px\" srcset=\"https:\/\/techolac.com\/wp-content\/uploads\/2019\/07\/Delete-var-cache-apt-archives-to-clean-up-apt-cache-on-Debian-or-Ubuntu-Linux.png 599w, https:\/\/techolac.com\/wp-content\/uploads\/2019\/07\/1_Delete-var-cache-apt-archives-to-clean-up-apt-cache-on-Debian-or-Ubuntu-Linux-300x119.png 300w\" alt=\"delete \/var\/cache\/apt\/archives to clean up apt cache on Debian or Ubuntu Linux.png\" width=\"599\" height=\"238\" \/><\/p>\n<h2>Conclusion<\/h2>\n<p>This page explained APT cache and how to use the clean and autoclean apt-get command that clears out the downloaded package files from\/var\/cache\/apt\/archives\/ folder. In short, use the <kbd><strong>sudo apt clean<\/strong><\/kbd> and <kbd><strong>sudo apt autoclean<\/strong><\/kbd> to free up disk space as part of scheduled maintenance on your Debian or Ubuntu Linux server.<\/p>\n<div class=\"author-info\">\n<div class=\"author-description\">\n<p class=\"author-bio\">\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>I noticed that \/var\/cache\/apt\/archives\/ taking lots of disk space on my AWS EC2 cloud server powered by Debian Linux. Can I delete \/var\/cache\/apt\/archives\/ folder? Is it safe to remove all files? Do we absolutely necessary to keep all these files? APT is a set of command found on Debian based operating systems. One can use [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":10311,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[972,407,1067,1066],"class_list":["post-10315","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","tag-delete","tag-linux","tag-ubuntudebian","tag-varcacheaptarchives"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Can I delete \/var\/cache\/apt\/archives for Ubuntu\/Debian Linux? - Techolac<\/title>\n<meta name=\"description\" content=\"Can I delete \/var\/cache\/apt\/archives for Ubuntu\/Debian Linux? I noticed that \/var\/cache\/apt\/archives\/ taking lots of disk space on my AWS EC2 cloud server powered by Debian Linux. Can I delete \/var\/cache\/apt\/archives\/ folder? Is it safe to remove all files? Do we absolutely necessary to keep all these files?\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.techolac.com\/linux\/can-i-delete-var-cache-apt-archives-for-ubuntu-debian-linux\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Can I delete \/var\/cache\/apt\/archives for Ubuntu\/Debian Linux? - Techolac\" \/>\n<meta property=\"og:description\" content=\"Can I delete \/var\/cache\/apt\/archives for Ubuntu\/Debian Linux? I noticed that \/var\/cache\/apt\/archives\/ taking lots of disk space on my AWS EC2 cloud server powered by Debian Linux. Can I delete \/var\/cache\/apt\/archives\/ folder? Is it safe to remove all files? Do we absolutely necessary to keep all these files?\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.techolac.com\/linux\/can-i-delete-var-cache-apt-archives-for-ubuntu-debian-linux\/\" \/>\n<meta property=\"og:site_name\" content=\"Techolac - Computer Technology News\" \/>\n<meta property=\"article:published_time\" content=\"2019-07-29T01:54:48+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-07-29T01:56:02+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.techolac.com\/wp-content\/uploads\/2019\/07\/Delete-var-cache-apt-archives-to-clean-up-apt-cache-on-Debian-or-Ubuntu-Linux.png\" \/>\n\t<meta property=\"og:image:width\" content=\"599\" \/>\n\t<meta property=\"og:image:height\" content=\"238\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Editorial Staff\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Editorial Staff\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.techolac.com\/linux\/can-i-delete-var-cache-apt-archives-for-ubuntu-debian-linux\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.techolac.com\/linux\/can-i-delete-var-cache-apt-archives-for-ubuntu-debian-linux\/\"},\"author\":{\"name\":\"Editorial Staff\",\"@id\":\"https:\/\/www.techolac.com\/#\/schema\/person\/3c09b621dfc5ef8f09b6f48236a9ae7b\"},\"headline\":\"Can I delete \/var\/cache\/apt\/archives for Ubuntu\/Debian Linux?\",\"datePublished\":\"2019-07-29T01:54:48+00:00\",\"dateModified\":\"2019-07-29T01:56:02+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.techolac.com\/linux\/can-i-delete-var-cache-apt-archives-for-ubuntu-debian-linux\/\"},\"wordCount\":632,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.techolac.com\/#\/schema\/person\/3c09b621dfc5ef8f09b6f48236a9ae7b\"},\"image\":{\"@id\":\"https:\/\/www.techolac.com\/linux\/can-i-delete-var-cache-apt-archives-for-ubuntu-debian-linux\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.techolac.com\/wp-content\/uploads\/2019\/07\/Delete-var-cache-apt-archives-to-clean-up-apt-cache-on-Debian-or-Ubuntu-Linux.png\",\"keywords\":[\"delete\",\"Linux\",\"UbuntuDebian\",\"varcacheaptarchives\"],\"articleSection\":[\"Linux\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.techolac.com\/linux\/can-i-delete-var-cache-apt-archives-for-ubuntu-debian-linux\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.techolac.com\/linux\/can-i-delete-var-cache-apt-archives-for-ubuntu-debian-linux\/\",\"url\":\"https:\/\/www.techolac.com\/linux\/can-i-delete-var-cache-apt-archives-for-ubuntu-debian-linux\/\",\"name\":\"Can I delete \/var\/cache\/apt\/archives for Ubuntu\/Debian Linux? - Techolac\",\"isPartOf\":{\"@id\":\"https:\/\/www.techolac.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.techolac.com\/linux\/can-i-delete-var-cache-apt-archives-for-ubuntu-debian-linux\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.techolac.com\/linux\/can-i-delete-var-cache-apt-archives-for-ubuntu-debian-linux\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.techolac.com\/wp-content\/uploads\/2019\/07\/Delete-var-cache-apt-archives-to-clean-up-apt-cache-on-Debian-or-Ubuntu-Linux.png\",\"datePublished\":\"2019-07-29T01:54:48+00:00\",\"dateModified\":\"2019-07-29T01:56:02+00:00\",\"description\":\"Can I delete \/var\/cache\/apt\/archives for Ubuntu\/Debian Linux? I noticed that \/var\/cache\/apt\/archives\/ taking lots of disk space on my AWS EC2 cloud server powered by Debian Linux. Can I delete \/var\/cache\/apt\/archives\/ folder? Is it safe to remove all files? Do we absolutely necessary to keep all these files?\",\"breadcrumb\":{\"@id\":\"https:\/\/www.techolac.com\/linux\/can-i-delete-var-cache-apt-archives-for-ubuntu-debian-linux\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.techolac.com\/linux\/can-i-delete-var-cache-apt-archives-for-ubuntu-debian-linux\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.techolac.com\/linux\/can-i-delete-var-cache-apt-archives-for-ubuntu-debian-linux\/#primaryimage\",\"url\":\"https:\/\/www.techolac.com\/wp-content\/uploads\/2019\/07\/Delete-var-cache-apt-archives-to-clean-up-apt-cache-on-Debian-or-Ubuntu-Linux.png\",\"contentUrl\":\"https:\/\/www.techolac.com\/wp-content\/uploads\/2019\/07\/Delete-var-cache-apt-archives-to-clean-up-apt-cache-on-Debian-or-Ubuntu-Linux.png\",\"width\":599,\"height\":238},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.techolac.com\/linux\/can-i-delete-var-cache-apt-archives-for-ubuntu-debian-linux\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.techolac.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Can I delete \/var\/cache\/apt\/archives for Ubuntu\/Debian Linux?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.techolac.com\/#website\",\"url\":\"https:\/\/www.techolac.com\/\",\"name\":\"Techolac - Computer Technology News\",\"description\":\"A weblog on emerging technology and internet news, reviews, tips for a broad range of computing technologies.\",\"publisher\":{\"@id\":\"https:\/\/www.techolac.com\/#\/schema\/person\/3c09b621dfc5ef8f09b6f48236a9ae7b\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.techolac.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/www.techolac.com\/#\/schema\/person\/3c09b621dfc5ef8f09b6f48236a9ae7b\",\"name\":\"Editorial Staff\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.techolac.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/46bb6cbf5ea4efe79156ff0f5de0a9602d1d0e5da0cb54b21e05a35d7e23379c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/46bb6cbf5ea4efe79156ff0f5de0a9602d1d0e5da0cb54b21e05a35d7e23379c?s=96&d=mm&r=g\",\"caption\":\"Editorial Staff\"},\"logo\":{\"@id\":\"https:\/\/www.techolac.com\/#\/schema\/person\/image\/\"},\"url\":\"https:\/\/www.techolac.com\/author\/admin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Can I delete \/var\/cache\/apt\/archives for Ubuntu\/Debian Linux? - Techolac","description":"Can I delete \/var\/cache\/apt\/archives for Ubuntu\/Debian Linux? I noticed that \/var\/cache\/apt\/archives\/ taking lots of disk space on my AWS EC2 cloud server powered by Debian Linux. Can I delete \/var\/cache\/apt\/archives\/ folder? Is it safe to remove all files? Do we absolutely necessary to keep all these files?","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:\/\/www.techolac.com\/linux\/can-i-delete-var-cache-apt-archives-for-ubuntu-debian-linux\/","og_locale":"en_US","og_type":"article","og_title":"Can I delete \/var\/cache\/apt\/archives for Ubuntu\/Debian Linux? - Techolac","og_description":"Can I delete \/var\/cache\/apt\/archives for Ubuntu\/Debian Linux? I noticed that \/var\/cache\/apt\/archives\/ taking lots of disk space on my AWS EC2 cloud server powered by Debian Linux. Can I delete \/var\/cache\/apt\/archives\/ folder? Is it safe to remove all files? Do we absolutely necessary to keep all these files?","og_url":"https:\/\/www.techolac.com\/linux\/can-i-delete-var-cache-apt-archives-for-ubuntu-debian-linux\/","og_site_name":"Techolac - Computer Technology News","article_published_time":"2019-07-29T01:54:48+00:00","article_modified_time":"2019-07-29T01:56:02+00:00","og_image":[{"width":599,"height":238,"url":"https:\/\/www.techolac.com\/wp-content\/uploads\/2019\/07\/Delete-var-cache-apt-archives-to-clean-up-apt-cache-on-Debian-or-Ubuntu-Linux.png","type":"image\/png"}],"author":"Editorial Staff","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Editorial Staff","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.techolac.com\/linux\/can-i-delete-var-cache-apt-archives-for-ubuntu-debian-linux\/#article","isPartOf":{"@id":"https:\/\/www.techolac.com\/linux\/can-i-delete-var-cache-apt-archives-for-ubuntu-debian-linux\/"},"author":{"name":"Editorial Staff","@id":"https:\/\/www.techolac.com\/#\/schema\/person\/3c09b621dfc5ef8f09b6f48236a9ae7b"},"headline":"Can I delete \/var\/cache\/apt\/archives for Ubuntu\/Debian Linux?","datePublished":"2019-07-29T01:54:48+00:00","dateModified":"2019-07-29T01:56:02+00:00","mainEntityOfPage":{"@id":"https:\/\/www.techolac.com\/linux\/can-i-delete-var-cache-apt-archives-for-ubuntu-debian-linux\/"},"wordCount":632,"commentCount":0,"publisher":{"@id":"https:\/\/www.techolac.com\/#\/schema\/person\/3c09b621dfc5ef8f09b6f48236a9ae7b"},"image":{"@id":"https:\/\/www.techolac.com\/linux\/can-i-delete-var-cache-apt-archives-for-ubuntu-debian-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/www.techolac.com\/wp-content\/uploads\/2019\/07\/Delete-var-cache-apt-archives-to-clean-up-apt-cache-on-Debian-or-Ubuntu-Linux.png","keywords":["delete","Linux","UbuntuDebian","varcacheaptarchives"],"articleSection":["Linux"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.techolac.com\/linux\/can-i-delete-var-cache-apt-archives-for-ubuntu-debian-linux\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.techolac.com\/linux\/can-i-delete-var-cache-apt-archives-for-ubuntu-debian-linux\/","url":"https:\/\/www.techolac.com\/linux\/can-i-delete-var-cache-apt-archives-for-ubuntu-debian-linux\/","name":"Can I delete \/var\/cache\/apt\/archives for Ubuntu\/Debian Linux? - Techolac","isPartOf":{"@id":"https:\/\/www.techolac.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.techolac.com\/linux\/can-i-delete-var-cache-apt-archives-for-ubuntu-debian-linux\/#primaryimage"},"image":{"@id":"https:\/\/www.techolac.com\/linux\/can-i-delete-var-cache-apt-archives-for-ubuntu-debian-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/www.techolac.com\/wp-content\/uploads\/2019\/07\/Delete-var-cache-apt-archives-to-clean-up-apt-cache-on-Debian-or-Ubuntu-Linux.png","datePublished":"2019-07-29T01:54:48+00:00","dateModified":"2019-07-29T01:56:02+00:00","description":"Can I delete \/var\/cache\/apt\/archives for Ubuntu\/Debian Linux? I noticed that \/var\/cache\/apt\/archives\/ taking lots of disk space on my AWS EC2 cloud server powered by Debian Linux. Can I delete \/var\/cache\/apt\/archives\/ folder? Is it safe to remove all files? Do we absolutely necessary to keep all these files?","breadcrumb":{"@id":"https:\/\/www.techolac.com\/linux\/can-i-delete-var-cache-apt-archives-for-ubuntu-debian-linux\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.techolac.com\/linux\/can-i-delete-var-cache-apt-archives-for-ubuntu-debian-linux\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.techolac.com\/linux\/can-i-delete-var-cache-apt-archives-for-ubuntu-debian-linux\/#primaryimage","url":"https:\/\/www.techolac.com\/wp-content\/uploads\/2019\/07\/Delete-var-cache-apt-archives-to-clean-up-apt-cache-on-Debian-or-Ubuntu-Linux.png","contentUrl":"https:\/\/www.techolac.com\/wp-content\/uploads\/2019\/07\/Delete-var-cache-apt-archives-to-clean-up-apt-cache-on-Debian-or-Ubuntu-Linux.png","width":599,"height":238},{"@type":"BreadcrumbList","@id":"https:\/\/www.techolac.com\/linux\/can-i-delete-var-cache-apt-archives-for-ubuntu-debian-linux\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.techolac.com\/"},{"@type":"ListItem","position":2,"name":"Can I delete \/var\/cache\/apt\/archives for Ubuntu\/Debian Linux?"}]},{"@type":"WebSite","@id":"https:\/\/www.techolac.com\/#website","url":"https:\/\/www.techolac.com\/","name":"Techolac - Computer Technology News","description":"A weblog on emerging technology and internet news, reviews, tips for a broad range of computing technologies.","publisher":{"@id":"https:\/\/www.techolac.com\/#\/schema\/person\/3c09b621dfc5ef8f09b6f48236a9ae7b"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.techolac.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.techolac.com\/#\/schema\/person\/3c09b621dfc5ef8f09b6f48236a9ae7b","name":"Editorial Staff","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.techolac.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/46bb6cbf5ea4efe79156ff0f5de0a9602d1d0e5da0cb54b21e05a35d7e23379c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/46bb6cbf5ea4efe79156ff0f5de0a9602d1d0e5da0cb54b21e05a35d7e23379c?s=96&d=mm&r=g","caption":"Editorial Staff"},"logo":{"@id":"https:\/\/www.techolac.com\/#\/schema\/person\/image\/"},"url":"https:\/\/www.techolac.com\/author\/admin\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.techolac.com\/wp-json\/wp\/v2\/posts\/10315","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.techolac.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.techolac.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.techolac.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.techolac.com\/wp-json\/wp\/v2\/comments?post=10315"}],"version-history":[{"count":0,"href":"https:\/\/www.techolac.com\/wp-json\/wp\/v2\/posts\/10315\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.techolac.com\/wp-json\/wp\/v2\/media\/10311"}],"wp:attachment":[{"href":"https:\/\/www.techolac.com\/wp-json\/wp\/v2\/media?parent=10315"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techolac.com\/wp-json\/wp\/v2\/categories?post=10315"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techolac.com\/wp-json\/wp\/v2\/tags?post=10315"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}