Birmingham mumbai



Download 15,21 Mb.
Pdf ko'rish
bet141/482
Sana13.01.2022
Hajmi15,21 Mb.
#355107
1   ...   137   138   139   140   141   142   143   144   ...   482
Bog'liq
Mastering Ubuntu Server Gain expertise in the art of deploying, configuring, managing, and troubleshooting Ubuntu Server by Jay LaCroix (z-lib.org)

[
 97 
]
Cleaning up orphaned apt packages
As you manage packages on your server, you'll eventually run into a situation where 
you'll have packages on your system that are installed but not needed by anything. 
This occurs either when removing a package that has dependencies, or when the 
dependencies on an installed package change. As you'll remember, when you install 
a package that requires other packages, those dependencies are also installed. But if 
you remove the package that required them, the dependencies will not be removed 
automatically.
To illustrate this situation, if I remove the 
apache2
 package from one of my servers, I 
will see the following extra information if I then try to install something else:
Figure 3.4: Output with orphaned packages shown
In this example, I removed 
apache2
 (that was done before the screenshot was taken), 
then I went on to install 
tmux
. The package I was trying to install is arbitrary; the 
important part is the text you see in the screenshot where it says 
The following 
packages were automatically installed and are no longer required
. Basically, if 
you have orphaned packages on your system, Ubuntu will remind you periodically 
as you use the APT suite of tools. In this case, I removed 
apache2
 so all of the 
dependencies that were installed to support the 
apache2
 package were no longer 
needed.
In the screenshot, I'm shown a list of packages that APT doesn't think I need 
anymore. It may be right, but this is something we would need to investigate. As 
instructed in the output, we can use the 
apt autoremove
 command as 
root
 or with 
sudo
 to remove them. This is a great way of keeping our installed packages clean but 
should be used with care. If you've just recently removed a package, it's probably 
safe to do the cleanup manually.


Managing Software Packages

Download 15,21 Mb.

Do'stlaringiz bilan baham:
1   ...   137   138   139   140   141   142   143   144   ...   482




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish