Acquiring and Managing Software: A-Debian GNU/Linux
Acquiring and Managing Software: A-Debian GNU/Linux
(Edwin Achimbi)
-packages are like subprograms/applications. e.g rpms and debs.
-repository: a central location in which data is stored and managed.
-packages could be in the form of a tarball - A tarball is a single file in which multiple
files are gathered together for convenient storage or distribution.
Selection
Choose a distribution based on needs, since each is different. When selecting consider the
following;
Cost
Features
Function
Support
software Packages.
a-Debian GNU/Linux:
-Popular variations of Debian include Ubuntu and Mint.
-holds multiple files and metadata related to some set of software in the format of an ar archive
file.
-preferred software is Ubuntu.
- a favorite of the hard-core Linux geeks
Command for install, manage, upgrade, and remove software
- The aptitude command (apt) is a package installation tool that provides a screen-oriented menu
that runs in the shell.
- apt-get is a command-line tool which helps in handling packages in Linux.
- Its main task is to retrieve information and packages from the authenticated sources (repository)
for installation, upgrade and removal of packages along with their dependencies
- apt-get, apt - manage, upgrade, and remove software.
-Uses the .deb packaging.
- APT stands for the Advanced Packaging Tool.
- apt* list a set of apt commands that can be used to manage package installations.
Apt* commands are preceded by sudo. That’s because it is common practice for an Ubuntu
administrator to run administrative commands as a regular user with sudo privilege.
Example of apt* commands
Other examples of using the apt-get command tool is;
Syntax:
~$ sudo apt-get install apache2 (to install apache2)
~$ sudo apt-get remove apache2 (to uninstall apache2)
~$ sudo apt-get upgrade apache2 (to update apache2)
- Debian/Ubuntu based systems use a command called tasksel for installing group of packages
used for specific tasks.
-Tasksel provides a number of group packages to configure a server quickly like “LAMP
Server”, “DNS Server”, “Mail Server”. For example, type on your terminal prompt:
~$ sudo tasksel
Managing services
1-systemd
-Start/stop or restart services in the past used the init scripts in the /etc/init.d directory.
This directory holds different scripts for different services.
-Ubuntu including many other distributions moved on and now use the use systemd instead of
the init.
In systemd, you manage sevices with systemctl command, which is still able to use the service
commands. This is because service command is actually redirect to systemctl.
Example. To list all the services in a linux system;
2- using init
The service --status-all (list all services). The services preceded by [ –] are disabled and those
with [ +] are enabled.
a-service <service-name> start
b-service <service-name> stop
c-service <service-name> restart
d-service <service-name> status
# rpm –q
Yum Options
yum options are typically stated before specific yum commands; i.e. yum <options> <command>
<package name/s> .
The following is a list of the most commonly-used yum options
-y : Answer "yes" to every question in the transaction.
-t : Sets yum to be "tolerant" of errors with regard to packages specified in the transaction
For a complete list of available yum options, refer to man yum.