Friday, November 22, 2019

How To Install & Uninstall Git on Ubuntu 18.04

Step 1: Update Default Packages
             Logged into your Ubuntu 18.04 server as a sudo non-root user, first update your default packages.


Step 2:  Install Git     
        

Step 3: Confirmation Successful Installation
   
     



Step 4: Set Up Git


If you need to edit this file, you can use a text editor such as nano:






Uninstallation Steps / Commands 

Uninstall git
To remove just git package itself from Ubuntu 14.04 execute on terminal:

$ sudo apt-get remove git

Uninstall git and it's dependent packages
To remove the git package and any other dependant package which are no longer needed from 

Ubuntu Trusty.

$ sudo apt-get remove --auto-remove git

Purging git
If you also want to delete configuration and/or data files of git from Ubuntu Trusty then this will work:

$ sudo apt-get purge git

To delete configuration and/or data files of git and it's dependencies from Ubuntu Trusty then execute:


$ sudo apt-get purge --auto-remove git








No comments:

Post a Comment

How to install and setup Kubernetes cluster using kOps in AWS environment

  Kops: Kops is also known as Kubernetes Operations, it is an open-source project which helps you to create, upgrade, destroy, and maintain ...