• Searching for a Package
  • A D D I N G A N D R E M O V I N G




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

    4
    A D D I N G A N D R E M O V I N G 
    S O F T W A R E
    One of the most fundamental tasks in 
    Linux—or any operating system—is add-
    ing and removing software. You’ll often 
    need to install software that didn’t come with 
    your distribution or remove unwanted software so it 
    doesn’t take up hard drive space.
    Some software requires other software to run, and you’ll sometimes 
    find that you can download everything you need at once in a software package
    which is a group of files—typically libraries and other dependencies—that 
    you need for a piece of software to run successfully. When you install a 
    package, all the files within it are installed together, along with a script 
    to make loading the software simpler.
    In this chapter, we examine three key methods for adding new soft-
    ware: apt package manager, GUI-based installation managers, and git.


    40
    Chapter 4
    Using apt to Handle Software
    In Debian-based Linux distributions, which include Kali and Ubuntu, the 
    default software manager is the Advanced Packaging Tool, or apt, whose 
    primary command is 
    apt-get
    . In its simplest and most common form, you 
    can use 
    apt-get
    to download and install new software packages, but you can 
    also update and upgrade software with it.
    N O T E
     
    Many Linux users prefer to use the 
    apt
     command over 
    apt-get
    . They are in many ways 
    similar, but 
    apt-get
     has more functionality and I think it’s worth learning early on.
    Searching for a Package
    Before downloading a software package, you can check whether the pack-
    age you need is available from your repository, which is a place where your 
    operating system stores information. The apt tool has a search function that 
    can check whether the package is available. The syntax is straightforward:
    apt-cache search 
    keyword
    Note that we use the 
    apt-cache
    command to search the apt cache, or the 
    place it stores the package names. So if you were searching for the intrusion 
    detection system Snort, for example, you would enter the command shown 
    in Listing 4-1.
    kali >

    Download 7,3 Mb.
    1   ...   54   55   56   57   58   59   60   61   ...   125




    Download 7,3 Mb.
    Pdf ko'rish

    Bosh sahifa
    Aloqalar

        Bosh sahifa



    A D D I N G A N D R E M O V I N G

    Download 7,3 Mb.
    Pdf ko'rish