3個Ubuntu常用的清除緩存指令

Eluspac
Nov 16, 2020

--

Server Storage常常爆滿?快點來學學吧!#ubuntu #clearcache #server #cache

第1個

清除/ var / cache中保留的已檢索軟件包文件的本地存儲庫。它清除的目錄是/ var / cache / apt / archives /和/ var / cache / apt / archives / partial /。它留在/ var / cache / apt / archives中的唯一文件是鎖定文件和部分子目錄。

sudo apt-get clean

第2個

像apt-get clean一樣,apt-get autoclean選項會清除本地存儲庫中檢索到的軟件包文件,但是它只會刪除不再能下載且實際上無用的文件。它有助於防止緩存過大。

sudo apt-get autoclean

第3個

該的autoremove因為一些其他的包需要他們,但是,由於刪除了這些其他的包已自動安裝選項刪除的軟件包,它們不再需要。

sudo apt-get autoremove

有時,升級將建議您運行此命令。要刪除的軟件包通常稱為“未使用的依賴項”。實際上,一個好的做法是在卸載軟件包後使用autoremove,以確保不會留下不需要的文件。

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Eluspac
Eluspac

No responses yet

Write a response