• Removing Software
  • Let’s try this out by installing Snort on your system. Enter  apt-get




    Download 7,3 Mb.
    Pdf ko'rish
    bet54/115
    Sana27.11.2023
    Hajmi7,3 Mb.
    #106243
    1   ...   50   51   52   53   54   55   56   57   ...   115
    Bog'liq
    linuxbasicsforhackers

    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.
    1   ...   50   51   52   53   54   55   56   57   ...   115




    Download 7,3 Mb.
    Pdf ko'rish

    Bosh sahifa
    Aloqalar

        Bosh sahifa



    Let’s try this out by installing Snort on your system. Enter  apt-get

    Download 7,3 Mb.
    Pdf ko'rish