Commit 83d1d25e authored by PTD's avatar PTD
Browse files

Update 23.- Parrot Software Management.md

parent 878d12ae
# Parrot Software Management # # Parrot Software Management #
In this chapter we will see an introduction to the APT package manager for Parrot. A program is a series of instructions. These instructions come in text files called sources. To work in our systems, they must be passed to machine language. This step is called compilation. The compilation generates one or several files, understandable by the system, which are called binaries. In this chapter, we will introduce the APT package manager for Parrot. A program is a series of instructions written in programming languages such as C, Go, Nim or Rust (to name a few). These instructions are stored in text files called sources. To work in our systems, they must be converted to machine language. This step is called compilation. The compilation generates one or several files, understandable by the system, called binaries.
Currently it is not necessary for the user to compile the sources of each program. The developers are responsible for compiling them for us and generating the respective binaries. As a program can carry, not only the executable, but another series of files, the developers "package" such software in a file called package. Two are the most famous, RPM packages and DEB packages. RPM was developed by Red Hat and DEB by Debian. Parrot uses the DEB format. The user doesn't need to compile the sources of each program as the developers are responsible for compiling and generating the respective binaries. A program can carry not only the executable but a series of files. The developers combine such software into a file called a package. Two of the most well-known are RPM packages and DEB packages. RPM was developed by Red Hat and DEB by Debian. Parrot uses the DEB format.
To compile some programs, some libraries and other programmes are necessary. If we tried to compile a program that had dependencies with other libraries and other programs, we should install these "dependencies" previously to its compilation. Likewise, if we want to install a binary we will need to have installed the necessary dependencies for its correct operation. To compile programs, often 3rd party libraries and other programs are necessary. If we tried to compile a program that had dependencies with other libraries and other programs, we would install these "dependencies" before its compilation. Likewise, if we want to install a binary we will need to have installed the necessary dependencies for its correct operation.
To manage these dependencies and the "packages" installation, package managers have been created. There are numerous packet managers, some graphics and other in command line. In this chapter, we will see one of the most famous, created by the Debian developers, and the one used by Parrot: **APT**. To manage these dependencies and the "package" installation, package managers have been created. There are numerous packet managers, some graphical and others via the command line. In this chapter, we will see one of the most famous, created by the Debian developers, and the one used by Parrot: **APT**.
The main functions of a package manager must be: The main functions of a package manager must be:
...@@ -17,21 +17,21 @@ The main functions of a package manager must be: ...@@ -17,21 +17,21 @@ The main functions of a package manager must be:
- Dependency management - Dependency management
- Software removal - Software removal
The package manager must check in a given location (it can be a local directory or a network address), the availability of such software. The locations are called repositories. The system maintains configuration files to check their repositories location. The package manager must check in a given location (it can be a local directory or a network address) for the availability of such software. The locations are called repositories. The system maintains configuration files to check repository locations.
## List of Repositories ## ## List of Repositories ##
Although in Parrot it is not necessary (nor recommended) to add new repositories or modify existing ones, we will see where we can configure them. In the file system, in the path "/etc/sources.list.d", we find the file parrot.list. The content of this file should be: Although in Parrot it is not necessary (nor recommended) to add new repositories or modify existing ones, we will see where we can configure them. In the file system, under the path "/etc/sources.list.d", we find the file parrot.list. The content of this file should be:
## stable repository ## stable repository
deb http://deb.parrotsec.org/parrot stable main contrib non-free deb http://deb.parrotsec.org/parrot stable main contrib non-free
#deb-src http://archive.parrotsec.org/parrot stable contrib non-free #deb-src http://archive.parrotsec.org/parrot stable contrib non-free
With this, we make sure to have the correct repositories list. In this location, the Parrot developers, keep the packages updated. With this, we make sure we have the correct repository list. In this location the Parrot developers keep the packages updated.
## Package Manager (APT) ## ## Package Manager (APT) ##
The Parrot package manager is apt. This manager is responsible for installing packages, checking dependencies, updating the system, among other things. Let's see we can do with it. We will see the most common options, but we can see several man pages (apt, apt-get, apt-cache, dpkg) The Parrot package manager is apt. Amongst other things,this manager is responsible for installing packages, checking dependencies, and updating the system. Let's see what we can do with it. We will see the most common options below. For more in-depth instructions, view the man pages for each of the following commands: apt, apt-get, apt-cache, dpkg.
Search for a package or text string: Search for a package or text string:
...@@ -43,7 +43,7 @@ Show package information: ...@@ -43,7 +43,7 @@ Show package information:
apt show <package> apt show <package>
\ \
Show a package dependencies: Show package dependencies:
apt depends <package> apt depends <package>
...@@ -98,4 +98,4 @@ Clean caches, downloaded packages, etc: ...@@ -98,4 +98,4 @@ Clean caches, downloaded packages, etc:
apt clean && apt autoclean apt clean && apt autoclean
\ \
These are just some examples. If more information is required, you shoul check the manual page (man 8 apt). These are just some examples. If more information is required, you should check the manual page (man 8 apt).
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment