What Is Linux Package And How To Install Linux Package?

Linux Package And Installation Linux Package 

If you use a Debian based Linux distribution such as Debian, Ubuntu, Mint or SolyDX, or you use a Red Hat based Linux distribution such as Fedora or CentOS the way that applications packages are installed onto your computer is the same.

The physical system for installing the software might be different. For instance, the graphical tools in Ubuntu are the Software Centre and Synaptic whereas in Fedora there is YUM Extender and openSUSE uses Yast. Command line tools include apt-get for Ubuntu and Debian or yum for Fedora and zypper for openSUSE.
What Is Linux Package And How To Install Linux Package?
The one thing they all have in common or same is the fact that the applications packaged up to make them easier to install. 

Debian based distributions utilize the .deb package format whereas Red Hat based distributions utilize rpm packages. There are many other different package types obtainable but in general, they work in the same way.

What Are Software Repositories?

The software repository carries software packages.

When you search on the Software Centre or use a tool like apt-get or yum you are shown a list of all the software packages within the software repositories available to your system.

A software repository can save or store its files on one server or across many different servers known as mirrors.

How To Install Packages

The easiest way to discover packages is through the graphical tools provides by distribution's package manager. 

The graphical tools help you to reconcile dependency issues and to validate that the installation has worked accurately.

If you use the command line or you are using a headless server (i.e. there is no desktop environment/window manager) then you can use command line package managers.

It is, of course, possible to install separate packages. Within Debian based distributions you can use the dpkg command to install .deb files And Red Hat based distributions can simply use the rpm command.

What Is In A Package

To see the contents of a Debian package you can open it in archive manager. The files contained within a package are as follows:
  • Control
  • Data
  • Debian-binary

The Debian-binary file contains the Debian format version number and the contents are almost always set to 2.0.

The control file is generally a zipped up tar file. The contents of the control file define important features of the package as follows:

  • Package Name
  • Version Number
  • Architecture
  • Maintainer
  • Installed-Size
  • Dependencies
  • Section (i.e. graphics)
  • Priority
  • Homepage
  • Description

The data file which is also a zipped up tar file provides a folder structure for the package. All the files in the data file are expanded to the relevant folder in the Linux system.

How Can You Create Packages

To create a package you need to have something that you want to distribute in a packaged format.

A developer may have created source code which works under Linux but which is not currently packaged for your version of Linux. In this case, you may wish to create a Debian package or RPM package. 

Alternatively, maybe you are the developer and you wish to make packages for your own software application. In the first instance, you need to compile the code and make sure it works accurately but the next step is to create the package.

Not all packages need source code. For example, you might create a package carrying wallpaper images of Scotland or a specific icon set.

Note: If You like Our Articles And Posts Then Please Follow Our Blog For Reading Our Latest Tech Articles. Thanks...
What Is Linux Package And How To Install Linux Package? What Is Linux Package And How To Install Linux Package? Reviewed by Technowap on December 30, 2018 Rating: 5

No comments :

Powered by Blogger.