Installing and Uninstalling packages from source


Hello Readers,
Today I'll tell you about installing packages in Ubuntu using the config file and the .tar of the package.
Firstly we'll extract that .tar file which consists of the files required to install the package.

           ***************run the commands via sudoers****************

There are 2 main files in the archive where first is the config file and second is the make.in file.

The config file is the file which consists of all the configuration required for the package, it checks for the preliminary packages which are required and the version whether they are updated to the latest or not and other prerequisites required for installation.
To run the configure file you first need to move to that directory.
Let's say you are installing a GLIB package which is placed in the download directory

    •  > cd Downloads/glib-2.43.4
    •  > ./configure
with the ./configure command, the config file of glib will execute and will check for all the required dependencies and if they are all set perfectly in place then you can proceed with the make command. Make command basically executes the make.in the file which is pre-compiled but is incomplete and is set complete by the config file as it modifies certain snippets of code according to kernel version and Desktop Environment and few other things.

    •  > make
 make command will place all the files in the required folder and compile some of the required files so that they can be installed when required. It's just like you are all set and just have to click on the Install button and that you do that by the following command i.e.
    •  > make install
This will start installing the package and you are all good to go with these three commands you can install any package with getting stuck in the silly GUI.

But there will be a situation where you'll make your system trash by installing the

                         ###NOT AT ALL REQUIRED### Packages

Don't Worry!! Open source knows every right and wrong what a user can do so if you installed any of the packages which damage your system or is not required then you can easily uninstall the package using the following commands:
    •  > cd Downloads/glib-2.43.4
    •  > make uninstall 
So with all this, you are all good to play with packages and installing them without using GUI and looking more like a CS guy ;-)...

Next Blog will be related to Web Development or if you want something in particular then do leave a comment!

Till then,
Adios Lactores
Happy Blogging!!!

Comments

Popular posts from this blog

A Brief about RDMA, RoCE v1 vs RoCE v2 vs iWARP

Cryptocurrency & Blockchain

Repairing your Ubuntu or Linux Dist. manually