Skip to main content

2 posts tagged with "ubuntu"

View All Tags

· 2 min read
  1. Get rid of packages that are no longer required. If you read the apt-get commands guide, you might have come across the apt-get command option autoremove.

This option removes libs and packages that were installed automatically to satisfy the dependencies of an installed package. If that package is removed, these automatically installed packages are useless in the system.

It also removes old Linux kernels that were installed from automatically in the system upgrade.

It’s a no-brainer command that you can run from time to time to make some free space on your Ubuntu system:

sudo apt-get autoremove
  1. You can remove a program in Ubuntu from the software centre or using the command below with particular app name:

sudo apt-get remove package-name1 package-name2

  1. Clean up APT cache in Ubuntu Ubuntu uses APT (Advanced Package Tool) for installing, removing and managing software on the system, and in doing so it keeps a cache of previously downloaded and installed packages even after they’ve been uninstalled.

You can see the size of this cache with the du command below:

sudo du -sh /var/cache/apt 

Either remove only the outdated packages, like those superseded by a recent update, making them completely unnecessary.

sudo apt-get autoclean

Or delete apt cache in its entirety (frees more disk space):

sudo apt-get clean

· 2 min read

You could install Visual Studio Code using apt:

wget -q -O- | sudo apt-key add -
echo "deb [arch=amd64] stable main" | sudo tee /etc/apt/sources.list.d/vscode.list
sudo apt update
sudo apt install code

or snap:

sudo snap install code --classic

After the C# package installing, the next dialog box appears: Clicking the marked button opens the next page, which provides the instructions for .Net Core SDK installation (along with ASP.Net Core runtime and .Net Core runtime installation instructions):

wget -O packages-microsoft-prod.deb
sudo apt install ./packages-microsoft-prod.deb
sudo apt-get update
sudo apt-get install apt-transport-https
sudo apt-get update
sudo apt-get install dotnet-sdk-3.1

monodevelop IDE seems is not an option now, because of I could not find it. But if you want to install the current mono version (For example, on 20.04, amd64 architecture) you could use official mono repository:

sudo apt install gnupg ca-certificates
sudo apt-key adv --keyserver hkp:// --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb [arch=amd64] stable-focal main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list
sudo apt update
sudo apt install mono-devel

You could also install additional mono packages, which you could find by:

apt-cache search mono

The man mono will introduce you to its usage:

mono is a runtime implementation of the ECMA Common Lan‐
guage Infrastructure. This can be used to run ECMA and
.NET applications.