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
Let’s try this out by installing Snort on your system. Enter apt-get
Download 7.3 Mb. Pdf ko'rish
|
linuxbasicsforhackers
- Bu sahifa navigatsiya:
- Removing Software
41
Let’s try this out by installing Snort on your system. Enter apt-get install snort as a command statement, as shown in Listing 4-2. kali >apt-get install snort Reading package lists... Done Building dependency tree Reading state information... Done Suggested packages: snort-doc The following NEW packages will be installed: snort --snip-- Install these packages without verification [Y/n]? Listing 4-2: Installing Snort with apt-get install The output you see tells you what is being installed. If everything looks correct, go ahead and enter y when prompted, and your software installa- tion will proceed. 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. Do'stlaringiz bilan baham: |
Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling
ma'muriyatiga murojaat qiling