Birmingham mumbai



Download 15,21 Mb.
Pdf ko'rish
bet127/482
Sana13.01.2022
Hajmi15,21 Mb.
#355107
1   ...   123   124   125   126   127   128   129   130   ...   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)

[
 85 
]
Figure 3.1: Installing Apache on a sample server
Even though I only asked for 
apache2

apt
 informs me that it also needs to install 
apache2-bin

apache2-data

apache2-utils
, and 
libapr1
 (and others) in order to 
satisfy the dependencies for the 
apache2
 package. 
apt
 also suggests that I install 
apache2-doc

apache2-suexec-pristine
, and a few others, though those are 
optional and are not required. You can install the suggested packages by adding 
the 
--install-suggests
 option to the 
apt install
 command, but that isn't always a 
good idea as it may install a large number of packages that you may not need. You 
can, of course, cherry-pick the suggested packages individually by using the 
apt
 
command to install any one or more of them manually.
Most of the time, though, you probably won't want to do this; it's usually better to 
keep your installed packages to a lean minimum and install only the packages you 
need. As we'll discuss in 
Chapter 21

Securing Your Server
, the fewer packages you 
install, the smaller the attack surface of your server.
Another option that is common with installing packages via 
apt
 is the 
-y
 option, 
which assumes 
yes
 to the confirmation prompt where you choose if you want to 
continue or not. For example, my previous example output included the line 
Do you 
want to continue? [Y/n]
. If we used 
-y
, the command would have proceeded to 
install the package without any confirmation. This can be useful for administrators in 
a hurry, though I personally don't see the need for this unless you are scripting your 
package installations. In fact, it can sometimes be a bad idea, because by assuming 
yes
, you may be confirming something you'd regret.


Managing Software Packages

Download 15,21 Mb.

Do'stlaringiz bilan baham:
1   ...   123   124   125   126   127   128   129   130   ...   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