L in u X ba sics for h acke rs g e t t I n g s t a r t e d w I t h




Download 7,3 Mb.
Pdf ko'rish
bet60/125
Sana14.05.2024
Hajmi7,3 Mb.
#232858
1   ...   56   57   58   59   60   61   62   63   ...   125
Bog'liq
linuxbasicsforhackers

Removing Software
When removing software, use 
apt-get
with the 
remove
option, followed by the 
name of the software to remove (see Listing 4-3).
kali >
apt-get remove snort
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer 
required:
libdaq0 libprelude2 oinkmaster snort-common-libraries snort-rules-default
--
snip
--
Do you want to continue [Y/n]?
Listing 4-3: Removing Snort with 
apt-get remove
Again, you’ll see the tasks being done in real time and you will be 
asked whether you want to continue. You can enter 
y
to uninstall, but you 
might want to keep Snort since we’ll be using it again. The 
remove
command 
doesn’t remove the configuration files, which means you can reinstall the 
same package in the future without reconfiguring.
If you do want to remove the configuration files at the same time as the 
package, you can use the 
purge
option, as shown in Listing 4-4.
kali >
apt-get purge snort
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libdaq0 libprelude2 oinkmaster snort-common-libraries snort-rules-default


42
Chapter 4
--
snip
--
Do you want to continue [Y/n]?
Listing 4-4: Removing Snort and the accompanying configuration files with 
apt-get purge
Simply enter 
Y
at the prompt to continue the purge of the software 
package and the configuration files.
You may have noticed the line 
The following packages were automatically
installed and are no longer required
in the output. To keep things small and 
modular, many Linux packages are broken into software units that many 
different programs might use. When you installed Snort, you installed sev-
eral dependencies or libraries with it that Snort requires in order to run. 
Now that you’re removing Snort, those other libraries or dependencies are 
no longer required, so they can be removed by running 
apt autoremove
.
kali > apt autoremove snort
Reading Package lists...Done
Building dependency tree
Reading state information ...done
--
snip
--
Removing snort-common-libaries (2.9.7.0-5)...
Removing libdaq2 (2.04-3+b1) …
Removing oikmaster (2.0-4)
--
snip
--

Download 7,3 Mb.
1   ...   56   57   58   59   60   61   62   63   ...   125




Download 7,3 Mb.
Pdf ko'rish

Bosh sahifa
Aloqalar

    Bosh sahifa



L in u X ba sics for h acke rs g e t t I n g s t a r t e d w I t h

Download 7,3 Mb.
Pdf ko'rish