Birmingham mumbai



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

[
 88 
]
Figure 3.2: Checking the location of the nmap binary
Now, when we run 
nmap
, we're actually running it from 
/snap/bin/nmap
. If we were 
to install 
nmap
 via 
apt
, it would run from 
/usr/bin/nmap
 instead. If we also have 
the 
nmap
 utility installed from Ubuntu's APT repositories, then we can run either 
one at any time by calling out the full path to the binary we want to run, since 
Snap packages are independent of the APT packages. For example, if we had 
nmap
 
installed via both 
snap
 and 
apt
, we could run Ubuntu's version by running 
/usr/
bin/nmap
 and the Snap version by running 
/snap/bin/nmap
.
Removing an installed Snap package is easy. We simply use the 
remove
 option:
sudo snap remove nmap
If we issue that command, then 
nmap
 (or whichever Snap package we designate) is 
removed from the system.
To update a package, we use the 
refresh
 option along with the name of a package to 
update:
sudo snap refresh
With that command, the package will be updated to the newest version available. 
Going even further, we can attempt to update every Snap on our server with the 
same command (without specifying a package):
sudo snap refresh
As you can see, managing Snap packages is fairly straightforward. Using the 
snap
 
suite of commands, we can install, update, or remove packages from our server 
or workstation. The 
snap find
 command allows us to find new Snap packages to 
install. Perhaps as the technology matures, we may find
 ourselves installing more 
Snap packages than Debian packages, but that remains to be seen. For now, it's a nice 
benefit to have two options to consider when installing new software.


Chapter 3

Download 15,21 Mb.

Do'stlaringiz bilan baham:
1   ...   126   127   128   129   130   131   132   133   ...   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