Getting to Know Linux: Installing From Command Line. For users new to the Linux operating system, nothing beats installing applications with the graphical Add/Remove Software applications found in the main menu of your desktop. But sometimes that ever-so-user-friendly GUI isn't an option. Once such instance would be a headless server. Install Software Using Apt Command. The apt command is a advanced command-line tool, which offers new software package installation, existing software package upgradation, updating of the package list index, and even upgrading the whole Ubuntu or Linux Mint system.
3 Major Ways How to Install New Software on Linux: Instructions how to install new software in Linux: as this point is exceptionally challenging and called-for among former Windows users. The most common methods are below:. Installing RPM packages. Installing DEB packages.
Installing from tarballs (esp. Source code). Firstly, any Linux user should be aware of such thing as software repositories. Repository is storage for packages (both source and binary) accessible via Internet to install any required software on your computer. You can easily select which to use or even create your own one: the list of connected repositories is stored here by default (examples for the most popular utilities): – YUM: in files repo in the directory /etc/yum.repos.d/; – APT: in file /etc/apt/sources.list and in the files in the directory /etc/apt/source.list.d/. #1) Redhat RPM is common for Linux free software package management tool developed by Red Hat.
This method is popular because users don’t need to compile the code by themselves. The software is ready to be installed and you can find a brief instruction below.
As for RPM, user needs to perform the extraction of files by already defined options (such as destination, name etc.) which are hidden within the responsible utilities ( rpm, yum). Installing RPM packages is fairly straight forward. To install such software package, you can run the following command: rpm -i RPMPackage.rpm. An alternative tool here is yum: the main difference is automatic upgrades and package management (including necessary dependencies). YUM is analog for APT (DEB packages) and manage repositories.
Example: yum install RPMPackage.rpm; yum update RPMPackage.rpm; yum remove RPMPackage.rpm. #2) Debian packages are almost the same as RPM but for usage in Debian GNU/Linux systems. Obviously, the extension of such packages are.deb. To install such packages (whether source or binary) use APT (Advance Packaging Tool). This is package management system for Debian and also includes a lot of different tools. So, installing new software will be quite simple as well: just run the command apt-get install DEBPackage.deb. Just for understanding the common flow, here is an example: apt-get update DEBPackage.deb; apt-get remove DEBPackage.deb.
![Linux command to install software Linux command to install software](/uploads/1/2/5/4/125498418/430570991.jpg)
#3) Tarballs is so-called archives distributed with the following extensions “.tar.gz”, “.tar.bz2”, or “.zip” (there are even more regarding the type of compression and archivers). Originally tarballs are used for programs which are not compiled, i.e. They are presented as source code. That’s why there significant differences how to install software this way.
![Linux Command To Install Software Linux Command To Install Software](/uploads/1/2/5/4/125498418/841915674.png)
The main idea here: if you cannot find your program in the repositories, just download the source code from any open source program website and then install it according simple instruction below. To extract data form such tarballs we should use the corresponding commands. Some variants are below: – for files ending in.tar.gz, run: tar -zxvf, – for files ending in.tar.bz2, run: tar -jxvf, – for files ending in.zip, run: unzip. As you got the point that the program has not been prepared for installation one should perform the preparation procedure called pre-installation configuration.
Just run./configure and your system will be checked for any necessary libraries or configurations required. To fulfill test of your system, preparation of the package and make installation instructions for the next step apply the following command make.
To install the program from source code after preparation phase run make install. Though, according to Linux forums, checkinstall is strongly recommended here due to the problem with further updates of installed software if using make install. So, this is just the way it goes (example):./configure make make install Hope this short tutorial is helpful for you to install any software on Linux or UNIX based systems.
.backup= CONTROL makes a backup of each existing destination file.b is like -backup but does not accept an argument.c is (ignored).C should be used to install a file. That is, unless target already exists and is the same as the new file, in which case the modification time won't be changed.d, -directory will treat all arguments as directory names; create all components of the specified directories.D creates all leading components of DEST except the last, then copies SOURCE to DEST. It's useful in the first format above.g, -group= GROUP sets group ownership.m, -mode= MODE sets permission mode (as in chmod), instead of rwxr-xr-x.o, -owner= OWNER sets ownership (super-user only).p, -preserve-timestamps applies access/modification times of SOURCE files to corresponding destination files.s, -strip strips symbol tables. It's useful only for the first and second formats above.S, -suffix= SUFFIX overrides the usual backup suffix.v, -verbose prints the name of each directory as it's created.