diff --git a/LDP/users/Jason-Evans/Package-Management-Basics/Package-Management-Basics.adoc b/LDP/users/Jason-Evans/Package-Management-Basics/Package-Management-Basics.adoc index 2036f783..b68e9b2a 100644 --- a/LDP/users/Jason-Evans/Package-Management-Basics/Package-Management-Basics.adoc +++ b/LDP/users/Jason-Evans/Package-Management-Basics/Package-Management-Basics.adoc @@ -90,108 +90,7 @@ In a Windows environment, programs are packaged in .exe or .msi installers which which x86_64 2.20-7.el7 base 41 k .... -Imagine trying to manually install all of these programs one at a time just to be able to install a text editor! In the early days of Linux, we faced these kinds of problems, however this problem is fixed with package management systems such as apt, yum, and others. In order to install VIM in CentOS 7 today, I simple have to run `yum install vim`. Individaual binary programs, other resources making up the software, along with installation scripts make up what we call packages. - -From the list above, you can see gpm-libs. The following files are required before this one package can even be installed: - -.... -/sbin/ldconfig -libc.so.6(GLIBC_2.15) -rtld(GNU_HASH) -/sbin/ldconfig -libc.so.6(GLIBC_2.15)(64bit) -libncurses.so.5()(64bit) -libtinfo.so.5()(64bit) -rtld(GNU_HASH) -.... - -Package managers simplify all of that. They look at the package that you want to install such as VIM, LibreOffice, etc., then look at what other package it depends upon, the dependancies of those packages, and so on; then it downloads them all and installs them. - -This is what it looks like when I install the Midnight Commander package in Ubuntu: - -.... -root@51fa0970b940:/# apt-get install mc -Reading package lists... Done -Building dependency tree -Reading state information... Done -The following extra packages will be installed: - libglib2.0-0 libglib2.0-data libgpm2 libssh2-1 libxml2 mc-data sgml-base - shared-mime-info unzip xml-core -Suggested packages: - gpm arj catdvi texlive-binaries dbview djvulibre-bin genisoimage gv - imagemagick links w3m lynx odt2txt poppler-utils python python-boto - python-tz xpdf pdf-viewer zip sgml-base-doc debhelper -The following NEW packages will be installed: - libglib2.0-0 libglib2.0-data libgpm2 libssh2-1 libxml2 mc mc-data sgml-base - shared-mime-info unzip xml-core -0 upgraded, 11 newly installed, 0 to remove and 0 not upgraded. -Need to get 4022 kB of archives. -After this operation, 18.5 MB of additional disk space will be used. -Do you want to continue? [Y/n] -Get:1 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libglib2.0-0 amd64 2.40.2-0ubuntu1 [1058 kB] -Get:2 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libxml2 amd64 2.9.1+dfsg1-3ubuntu4.7 [571 kB] -Get:3 http://archive.ubuntu.com/ubuntu/ trusty/main sgml-base all 1.26+nmu4ubuntu1 [12.5 kB] -Get:4 http://archive.ubuntu.com/ubuntu/ trusty/main libgpm2 amd64 1.20.4-6.1 [16.5 kB] -Get:5 http://archive.ubuntu.com/ubuntu/ trusty/universe libssh2-1 amd64 1.4.3-2 [66.3 kB] -Get:6 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libglib2.0-data all 2.40.2-0ubuntu1 [116 kB] -Get:7 http://archive.ubuntu.com/ubuntu/ trusty/main shared-mime-info amd64 1.2-0ubuntu3 [415 kB] -Get:8 http://archive.ubuntu.com/ubuntu/ trusty/main xml-core all 0.13+nmu2 [23.3 kB] -Get:9 http://archive.ubuntu.com/ubuntu/ trusty/universe mc-data all 3:4.8.11-1 [1134 kB] -Get:10 http://archive.ubuntu.com/ubuntu/ trusty/universe mc amd64 3:4.8.11-1 [453 kB] -Get:11 http://archive.ubuntu.com/ubuntu/ trusty-updates/main unzip amd64 6.0-9ubuntu1.5 [157 kB] -Fetched 4022 kB in 7s (533 kB/s) -Selecting previously unselected package libglib2.0-0:amd64. -(Reading database ... 11542 files and directories currently installed.) -Preparing to unpack .../libglib2.0-0_2.40.2-0ubuntu1_amd64.deb ... -Unpacking libglib2.0-0:amd64 (2.40.2-0ubuntu1) ... -Selecting previously unselected package libxml2:amd64. -Preparing to unpack .../libxml2_2.9.1+dfsg1-3ubuntu4.7_amd64.deb ... -Unpacking libxml2:amd64 (2.9.1+dfsg1-3ubuntu4.7) ... -Selecting previously unselected package sgml-base. -Preparing to unpack .../sgml-base_1.26+nmu4ubuntu1_all.deb ... -Unpacking sgml-base (1.26+nmu4ubuntu1) ... -Selecting previously unselected package libgpm2:amd64. -Preparing to unpack .../libgpm2_1.20.4-6.1_amd64.deb ... -Unpacking libgpm2:amd64 (1.20.4-6.1) ... -Selecting previously unselected package libssh2-1:amd64. -Preparing to unpack .../libssh2-1_1.4.3-2_amd64.deb ... -Unpacking libssh2-1:amd64 (1.4.3-2) ... -Selecting previously unselected package libglib2.0-data. -Preparing to unpack .../libglib2.0-data_2.40.2-0ubuntu1_all.deb ... -Unpacking libglib2.0-data (2.40.2-0ubuntu1) ... -Selecting previously unselected package shared-mime-info. -Preparing to unpack .../shared-mime-info_1.2-0ubuntu3_amd64.deb ... -Unpacking shared-mime-info (1.2-0ubuntu3) ... -Selecting previously unselected package xml-core. -Preparing to unpack .../xml-core_0.13+nmu2_all.deb ... -Unpacking xml-core (0.13+nmu2) ... -Selecting previously unselected package mc-data. -Preparing to unpack .../mc-data_3%3a4.8.11-1_all.deb ... -Unpacking mc-data (3:4.8.11-1) ... -Selecting previously unselected package mc. -Preparing to unpack .../mc_3%3a4.8.11-1_amd64.deb ... -Unpacking mc (3:4.8.11-1) ... -Selecting previously unselected package unzip. -Preparing to unpack .../unzip_6.0-9ubuntu1.5_amd64.deb ... -Unpacking unzip (6.0-9ubuntu1.5) ... -Processing triggers for mime-support (3.54ubuntu1.1) ... -Setting up libglib2.0-0:amd64 (2.40.2-0ubuntu1) ... -No schema files found: doing nothing. -Setting up libxml2:amd64 (2.9.1+dfsg1-3ubuntu4.7) ... -Setting up sgml-base (1.26+nmu4ubuntu1) ... -Setting up libgpm2:amd64 (1.20.4-6.1) ... -Setting up libssh2-1:amd64 (1.4.3-2) ... -Setting up libglib2.0-data (2.40.2-0ubuntu1) ... -Setting up shared-mime-info (1.2-0ubuntu3) ... -Setting up xml-core (0.13+nmu2) ... -Setting up mc-data (3:4.8.11-1) ... -Setting up mc (3:4.8.11-1) ... -update-alternatives: using /usr/bin/mcview to provide /usr/bin/view (view) in auto mode -update-alternatives: using /usr/bin/mcedit to provide /usr/bin/editor (editor) in auto mode -Setting up unzip (6.0-9ubuntu1.5) ... -Processing triggers for libc-bin (2.19-0ubuntu6.7) ... -Processing triggers for sgml-base (1.26+nmu4ubuntu1) ... -.... +Imagine trying to manually install all of these programs one at a time just to be able to install a text editor! In the early days of Linux, we faced these kinds of problems, however this problem is fixed with package management systems such as apt, yum, and others. Package managers simplify everything. They look at the package that you want to install such as VIM, LibreOffice, etc., then look at what other package it depends upon, the dependencies of those packages, and so on; then it downloads them all and installs them. For example, in order to install VIM in CentOS 7 today, I simply have to run `yum install vim`. ==== Some different package management systems: