Installing commonly used software
As with any other operating system, there are a large number of applications that are available for Unix. Many of the most common ones are available from online repositories and can be installed by a user with the appropriate privelages. In the case of your STOR-i Ubuntu Virtual Machine you have these privelages and can install any software that takes your fancy !! Lucky you !!
Adding a repository to the repository list¶
To install software we are going to use the apt command. The first thing we need to do is make apt aware of a useful repository called universe. This can be done using the add-apt-repository command.
Try running the following.
add-apt-repository universeWhat happened ?
sudo - run a command as “super user”¶
Try running the above command again, but this time prefix it with te sudo command.
sudo add-apt-repository universeAdding software from a repository using apt¶
There is a useful command called tree. Try running it.
tree.
├── _config.yml
├── files
│ ├── examples.zip
│ └── matrix.exp.R
├── file-structure.ipynb
├── getting-started.ipynb
├── image-creation.odp
├── images
│ ├── android-architecture.jpg
│ ├── computer-hardware.jpg
│ ├── desktop-applications.jpg
│ ├── desktop-os-statistics.png
│ ├── device-shipment-2015.png
│ ├── file-1453.png
│ ├── file-properties.png
│ ├── file-stdin-stdout-file.png
│ ├── file-stdin-stdout.png
│ ├── linux-kernel-code.png
│ ├── LU-mylab-2026.png
│ ├── LU-mylab.png
│ ├── os-components2.png
│ ├── os-components.png
│ ├── stdin-cmd-file-cmd-stdout.png
│ ├── stdin-cmd-pipe-cmd-stdout.png
│ ├── stdin-stdout-file.png
│ ├── stdin-stdout.png
│ ├── stori-ubuntu-2026.png
│ ├── terminal-icon.png
│ ├── terminal.jpg
│ ├── terminal.png
│ ├── ubuntu-desktop-2026.png
│ ├── ubuntu-lab-desktop.png
│ ├── ubuntu-lab-password.png
│ ├── ubuntu-lab.png
│ ├── ubuntu-lab-start-terminal.png
│ ├── ubuntu-lab-username.png
│ ├── ubuntu-login-2026.png
│ ├── unix-history.png
│ └── waffle-application-launcher.png
├── installing-and-removing-software.ipynb
├── intro.ipynb
├── messages.txt
├── notes.txt
├── processes.ipynb
├── redirection-pipes-tees.ipynb
├── references.ipynb
├── regular-expressions.ipynb
├── scratch.ipynb
├── shell-scripts.ipynb
├── some-basic-unix-commands.ipynb
├── _toc.yml
└── Untitled.ipynb
3 directories, 50 files
What happened ? To install the tree command try this ...
sudo apt install treeNow try running the tree command. What does it do ?
Exercise¶
What does this command do ?
R
Install the software package r-base.
Now what does the R command do ?
Exercise¶
What would you expect the following to do ?
sudo apt remove treeCheck that it does what you expect.