far which was my biggest problem?
Knowing where to find / store documentation on our favorite OS.
Well in Lab of Gods now will post all the links in my interesting articles I read around and make them available to the casual readers like me hoping that others will benefit.
Ps Anyone want to share available material that has to do is write me an email to see the content posted.
Today we talk about: How To
APT :
APT stands for Advanced Packaging Tool and is a package manager command line that has become a standard in Debian and its derivatives.
try to understand step by step how APT
First of all, to understand the use of APT have to know what are the repository .
The term " repository" can be translated into Italian as " deposit" and is nothing but a file containing a list of packages from which you can tap into for the installation of software in GNU / Linux.
Every Linux distribution has its own repositories (maintained by the development team) and unofficial (edited by anyone outside the team) and they can be either local (CD-ROM or DVD) or remote (such as the official repository accessible by http or ftp). ( taken from Wiki)
The sources.list is simply a text file located in / etc / apt / and contains a list of repositories.
lines in the sources.list file can be commented on or not, that is preceded by "#" or not.
If the line is commented on a repository then it means that its repository has been disabled by the user and therefore will not be used by APT.
The package management system uses its own database to keep track of which packages are installed, which are not and which are available for installation. The program apt-get uses this database to find out how to install packages requested by the user and to find out which additional packages are needed to make them work properly (dependencies). (Taken from the manual http://www.debian.org )
repository debian and derivatives in general there are 3 files:
- Packages: is nothing but a text file containing information about the individual packages contained in the repository (index). Within this file for each package in the repository will contain the following items:
- Package
- Source
- Priority
- Section
- Installed-Size
- Maintainer
- Architecture
- Version
- Recommends
- Replaces
- Suggests
- Depends
- Conflicts
- Filename
- Size
- MD5sum
- Description
- Packages.gz : is nothing but the compressed version of the text file Packages
- Release: is a text file that contains information about architecture, linux distro, and version for which the owner of the repository we have created the debian packages therein.
Whenever we run the command "sudo apt-get update " These are downloaded files Packages.gz incorporated in all repositories in sources.list. Packages.gz files are extracted and stored in the / var / lib / apt / lists.
Once you have downloaded these files contain the indexes of available packages in the repository, APT can compare the versions of packages available in repositories with versions of packages installed on your distro.
If there are newer versions in the repositories of the packages installed, APT offers you the update that is implemented when executing the command " sudo apt-get dist-upgrade .
Each time you run updating your distro, or install new packages (via "sudo apt-get install packagename) APT reads from index files (Packages) in / var / lib / apt / lists /
APT Then download the package from the location just read. Once you downloaded the package, which is passed to dpkg will install it.
the location within the package repository (specified by the Filename entry). APT Then download the package from the location just read. Once you downloaded the package, which is passed to dpkg will install it.
also that there is a big advantage in the use of APT is that when you install a package does not need to worry about dependencies. In fact, as be seen between the entries in the file specified any packages Packages are recommended, suggested, to replace, dependencies and conflicts to resolve. In this way, APT can automatically resolve conflicts, meet the dependencies, and suggest the installation of packages that can be useful.
0 comments:
Post a Comment