Installing and Removing Packages

Installing and Removing Packages

By Jared York | JaredYork | 12 Jul 2019


Hello everyone!  Welcome to the first post in the series, Linux Terminal Survival Guide!  I'm going to assume you're using a Debian/Ubuntu based Linux distribution.  This series is written from an Ubuntu user, so my apologies if you're using Arch or some other distro.  In this first installment, we will be taking a look at how to install and remove applications with the Linux terminal!

To begin, let's open a terminal via the super key (the Windows key on that other operating system...)  Next, start by typing in "terminal."  You should see an icon for the Terminal popup under the search box.

351665157-ae8b70ca649d23eb8df2bf266d40f6b6e79a596faa2a4d820005a7017b7ae553.png

Let's say we wanted to install VLC player.  No problem!  All we have to do to install it is type:

sudo apt-get install vlc

351665157-58f341b9410a9c9f3b8f5de95ab636c3fa56d53fac60a6a5492b4473205fcc90.png

After that, all we have to do is press 'enter' ('return' on some keyboards.)  Next, you should see a prompt in the terminal asking for your password.  Don't worry if you don't see your password while you're typing, that's perfectly normal.  Once you've entered your password, press 'enter' again.

351665157-31b5339d591a332c04cd338642e6afa97ae9c8b9c911816b0c9c72833d59f621.png

Next, you should see some information appear showing the various packages to be installed, along with the filesize.  Just type 'y', and hit 'enter'.

351665157-49805a78741a5e33e57b59e7fac77d10a85edf6174e2ead3766a3b2b6aae56bd.png

Then just let it install!  You will know once the installation is finished, once you see your blinking cursor again.

351665157-4bb4680ab7d7a5138007d27a339534d0bfae24086c739da562b0dfbc781ff5e6.png

If we wanted to remove a package such as VLC, we just have to type in a similar command:

sudo apt-get remove vlc

Next press 'enter', you may see another password prompt if you remove VLC in another terminal session.  If you see a password prompt, just press 'enter' again.

351665157-c574860c556d28f2a915eeb98a941fc2226e83564cf108fd414fa6707ca68758.png

See the cursor?  Fantastic!  You now know how to install and remove packages with the Linux terminal!  Congratulations.  You are on your way to becoming a pro at using the terminal.  Be sure to stay tuned for the next guide in this series.


Jared York
Jared York

business owner, programmer, game developer, educator, coffee enthusiast


JaredYork
JaredYork

The blog where I ramble about tech, crypto, and other things that interest me.

Send a $0.01 microtip in crypto to the author, and earn yourself as you read!

20% to author / 80% to me.
We pay the tips from our rewards pool.