Thursday, May 12, 2022

Packages Managers in linux

 Packages in Linux


There are various pakage managers in linux.
Here we are using kali linux, a debian distribution
(.deb)

Ways to install packages in linux:
  • dpkg 
    • It is a debian package manager.
    • For using dpkg ,we need the .deb file of the particular pakage.
    • Command : "sudo dpkg -i <package_name.deb>"
    • This is not a efficient way of installing package.
    • It is a low level package installing tool.
  • apt
    • It is a advance package management tool.
    • It is very easy to use and handle error.
    • Command : "sudo apt install <package_name>".
    • There are various packages available in the apt package manager.
    • On using certain keyword ,packages can be installed to the machine.
  • aptitude
    • It is also a advanced package management tool.
    • It use gui to install and manage packages.

Using apt to install and manage packages:
  • Start VirtualBox and Boot Kali linux.
  • Open the terminal in Kali linux.
  • Before installing any package a primary step is to update the machine.Since the package manager get update randomly.On updating we can get the latest version of the package.
  • We can see the available packages with the following command.

  • Lets install a fun package cmatrix

  • To run cmatrix:
      

  • To stop a execution : Ctrl+Z

  • To list the installed appication .
                                                                                 Without grep all the packages in machine will be displayed.grep is similar to word finder.

Using apt to remove packages:
  • Command : "sudo apt remove/purge <package_name>"
    • remove : Only remove the application and the user details will remain.
    • purge : Completely remove all data about the application/package.
    • Example : Removing cmatrix

        


No comments:

Post a Comment

Google Cybersecurity Professional Certificate

    Google Cybersecurity Professional Certification 🔒 Google Cybersecurity Professional Certification: A Journey Unveiled! 🔒 Hey Folks! 🌟...