Birmingham mumbai



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

[
 87 
]
This will not only remove the package, but wipe out its configuration directory 
(applications typically store their configuration files in a sub-directory of 
/etc
).
So, that concludes the basics of managing Debian packages with 
apt
. Now, let's 
move on to managing Snaps.
Managing Snap packages with snap
To manage Snap packages, we use the 
snap
 command. The 
snap
 command features 
several options we can use to search for, install, and remove Snap packages from our 
server or workstation. To begin, we can use the 
snap find
 command along with a 
keyword to display a list of Snap packages available to us that match that keyword:
snap find
Basically, you just simply type the 
snap find
 command along with a search term to 
look for. One example could be the 
nmap
 application, which is a useful tool to have if 
we're managing a network:
snap find nmap
In the case of 
nmap
, this utility is available in Ubuntu's default repositories, so you 
don't need to use the Snap package to install it. Typically, though, the Snap version 
will be newer and have more features than what is available in the APT repositories. 
If we wish to install the Snap version, we can use the following command to do so:
sudo snap install nmap
Now that we have 
nmap
 installed, we can check the location of the 
nmap
 binary with 
the 
which
 command. We can use the 
which
 command to find the location of the 
binary file for commands that are available—it will show the path to the binary 
if the appropriate package is installed. If the command is not available, the 
which
 
command will show no output. So, if we run the following command, we should 
now see the path of that binary printed to the screen:
which nmap
This will return the following output, showing that the Snap version of 
nmap
 is run 
from a special place:
With the 
install
 option, we need to use 
sudo
 since the act of 
installing a package makes changes on the server. For a simple 
find
, we can omit 
sudo
.


Managing Software Packages

Download 15,21 Mb.

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