Skip to main content

How to Install Softwares in Linux

install software in linux, how to install linux, sudo-apt-get, yum packages, .deb, debian, what is apt,red hat liinux, how to install yum packages

In any operating system, we need to install applications for use in day-to-day tasks.
In Windows operating system, there is a simple .exe extension file (for eg: setup.exe) or a program.zip file. On a Macintosh or Mac OS, it is a simple program.dmg file or a program.sit extension file.

In both the operating systems while installing, a user goes through common configuration questions such as accepting the license, or the directory to install the software, size status on the disk. But in Linux it’s different. It seems tough to install programs/software but it’s not true.

install software in linux, how to install linux, sudo-apt-get, yum packages, .deb, debian, what is apt,red hat liinux, how to install yum packages


Linux has many flavors and distributions (“distro” in short). The second package manager is DEB which stands for Debian and APT (Advanced Packaging Tool) has made advanced features that are commonly used, like automatic dependency resolution and signed packages. Debian packages are used by Debian/Linux and most used distributions like Ubuntu, Linux Mint, Mepis, etc. The .deb/Debian files look like program.deb

install software in linux, how to install linux, sudo-apt-get, yum packages, .deb, debian, what is apt,red hat liinux, how to install yum packages

Linux is a beautiful operating system. It was mainly designed for servers but after declared as open-source, it gained wide interest by many people who created many distributions or flavors of Linux.

APT for Debian based distros like Ubuntu, Linux Mint, etc.

APT is the tool which is commonly used to install packages remotely from a software repository. A repository is something where the software packages are stored and APT is a simple command based tool to get the software and install packages. This little easy tool informs the user about the software that is currently being installed and also informs you about the packages that are available in the repositories.

commands to use:

To install:

sudo apt-get install {packagename}

To remove/uninstall any software, just use remove

sudo apt-get remove {packagename}

The user packages are stored in online repositories and APT handles a local database on the user’s hard drive that contains information about the packages available and the location of the packages. So when one types for eg. “sudo apt-get install vlc”, the APT will start finding the package named vlc in the database and will install vlc once the user accepts (presses Y option) to install the software.

The software is needed to update regularly as Linux is open-source and many developers upload new packages and modifications every hour. So, to get all the newly uploaded packages, type:

sudo apt-get update

Now to update the APT database and also to upgrade the system security patches and security updates, patches, users may do it by using commands like:

sudo apt-get update && sudo apt-get upgrade.

Remember that every code of line you enter must have root access. to install software in Debian based distro; you will use apt-get followed by sudo and it’ll prompt you to enter the password. For Debian distributions, you’ll use apt-get followed by sudo.

install software in linux, how to install linux, sudo-apt-get, yum packages, .deb, debian, what is apt,red hat liinux, how to install yum packages

yum: for RPM based distributions, like, Fedora, Red Hat

install software in linux, how to install linux, sudo-apt-get, yum packages, .deb, debian, what is apt,red hat liinux, how to install yum packages

Any new user will not have any trouble understanding yum because it’s same as apt-get. As ’apt-get’ installs software packages for Debian Packages like that ‘yum’ installs packages for RPM packages. It can also use apt-get download and install packages from the repository.

Commands:

yum install {packagename}

To remove software packages, just use remove

yum remove {packagename}

Unlike APT, yum packages does not keep a local database in user’s HDD. So, there’s no need to update it. But to install periodic updates for security patches and bug fixes, here’s the command:

yum update

and for a single package update:

yum update {packagename}

install software in linux, how to install linux, sudo-apt-get, yum packages, .deb, debian, what is apt,red hat liinux, how to install yum packages
pic source: wiki how


Installing Softwares from Zipped Files or (Tar Balls) in Linux

install software in linux, how to install linux, sudo-apt-get, yum packages, .deb, debian, what is apt,red hat liinux, how to install yum packages

Similar to .zip files on Windows or .sit files on a Mac, Linux has tar balls ending with extension like, .tar, .tar.gz, .tgz or something else.

To unpack a tar ball (zip file), use the following command :

tar -xzvf {filename}.tar.gz

Parameters:

x - to extract files
z - filter through gzip for decompression (use this if the file has a .gz extension)
v - verbose mode for showing the steps
f - an indication that there will be a file name to follow

You may want to create an alias called ”untar” that feeds those options if you forget commands easily. Note that this command does not install any software, it just extracts the files and then you can install the files by reading the readme or Install file or try the commands above given.

The above-covered packaging tools are the majority ones that are generally used. But as Linux being in different flavors certain distros use their native package format. Like SUSE uses RPM as it’s native package format, but has its own tool to manage software on a system. Yast is the package manager tool used in the open SUSE Linux distributions, as well as SUSE’s derived commercial distributions. Another example is dpkg packages.

install software in linux, how to install linux, sudo-apt-get, yum packages, .deb, debian, what is apt,red hat liinux, how to install yum packages

Hope you found this article helpful. For any doubts, queries, and suggestions feel free to comment down below.

Comments

Popular posts from this blog

Secret: How to download large files from Google Drive the right way

Google Drive is an awesome tool for saving files online. It offers 15 GB storage for a standard free account. If you want more space, then upgrade to their premium plans which are cheaper and are at reasonable prices.

You can easily download files of less size...about 2GB from google drive using the Google Drive's desktop app and direct download, but beyond that, it will struggle to download files. I tried to download all my pics from my backup which were about 2.5 GB, compressed them and they were failing each and every time while downloading.
In this article, I'll share a few tricks on how to download large size files from Google Drive without any issues. You can also download files with the help of download managers with this simple trick.
# Method 1:
If you're like me who thinks that Command line interface is cool and awesome, follow this method. It's a pretty easy method and anyone can follow it.
The below method is for downloading all types of files whether they a…

Top 10 Websites you never knew to Download Movies Legally For Free !!

Everyone loves to watch movies and even loves them more if they are free to watch. If you Google "free movies" lots of them appear for download but in most cases, you end up downloading a virus or malware. Moreover, these sites are illegal for downloading and are deleted by google to make web search safe and free of malware.

Another source of downloading movies are through torrent websites. Downloading through these websites often get users into trouble. With the streaming services like Netflix, Amazon, HBO etc., watching movies and TV shows in our home has become more comforting than ever. What if you don't want to spend money? Without any further ado, let's see the list of websites to download movies legally.





List of Top 10 Websites to download Movies for free :
1. The Internet Archive :

The Internet Archive houses collection of a ton of articles, texts, music, and movies. From Internet Archive, you can download hundreds of books and even movies for free.
About 4-…

Top 10 Android Launchers You Need To Try in 2017

Are you bored of same old Home Screen and User Interface on your mobile device? Want to look cool and be functionable and at the same time ? Rejoice, here is the list of 10 Google Now alternatives that you could try to spice up your User Interface. The apps listed in the article requires no root access to the device. Pretty much anyone can install these as a normal app and it works for any Android device.

Google Now launcher is the best launcher in the android market and is widely famous for its simple looks and clean UI. Following the launch of Pixel smartphones this year, Google has decided to end it’s support for Google Now launcher and concerning about the future, it’s prioritising the Pixel launcher, which already comes with Pixel devices. A launcher named Pixel Launcher is already on the Google Playstore, but it misses one big feature of Google’s new“Voice Assistant” which is an extraordinary feature in Pixel smartphones.

It’s possible to install Google’s Assistant via rooting,…