top of page
Search

Bash lab 101: installing and uninstalling an application.



Today we are going to do something pretty basic that most computer users do on a regular basis. That would be installing and uninstalling an application. Most of the time we do this in the graphical user interface because it is the easiest way. How would you do this if you didn't have a graphical user interface? We can do this in a command line terminal. That is what we're going to do now.


In the video we have a bunch of loaded up we have a list of applications one of them is a system profiler that is something that we want to uninstall. To do that we are going to open up the terminal and we will type in this following bash script.


sudo apt remove hardinfo


The breakdown is this "sudo" means super user do. Next you have "apt remove" and hardinfo is the name of the system profiler that we want to remove. But we're not done yet. Picking up where we left off we will type "& &" then we will type "sudo apt autoremove".

The second part of the script is needed to remove any additional components or dependencies that were installed with hardinfo. The final result of the script should look like this.


sudo apt remove hardinfo && sudo apt autoremove


After hitting enter it will ask you to put in your password. After that in the scientific parlance you will see a whole lot of stuff scrolling on your screen. .you will know when you are done because you will see the prompt on your screen. Once the uninstall is done you can confirm by using the GUI to look at the list of installed applications. It should be gone.


What do you do if you accidentally uninstalled the wrong application in this case what if we did not want to lose the system profiler. We would run the following script in order to reinstall it.


sudo apt-get install hardinfo


Once the installation is done you can confirm that it has been installed properly by either going to the application list in the graphical user interface. Or you can type the application name in the terminal which will run the program.


That's all for now.

Go home.

1 view0 comments

© 2023 by Sofia Franco. Proudly created with Wix.com.

bottom of page