Linux basic maintenance commands (Debian-based systems)

NewImage

For those who don’t use the commands often this is a super quick reminder/reference. For Debian-based Systems only.

We will assume you need to install the ‘Stellarium’ Application. 

To install type at the terminal. (commands in bold)

apt-get install Stellarium

If the application is not available in a repository and you have a .deb file, download the file and run the following command (where MyFileName you put the .deb file name you downloaded)

dpkg -i MyFileName.deb

To update software and versions on your system

apt-get update

That will update the list. To install the updates type:

apt-get upgrade

If you need to see what will be updated add the -u

apt-get upgrade -u

If you dont want a package anymore (stellarium is the example application to be removed). This will not remove configuration files or any extra packages.

apt-get remove stellarium 

To remove the package completely including all configuration files

apt-get purge stellarium

To recover some space after installing / uninstalling and clean your system

apt-get autoclean

To remove the local cache

apt-get clean

To remove dependancies that are not needed anymore

apt-get autoremove

 

Advertisements


Categories: IT Security, Linux, Servers

Tags: ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: