Search This Blog

Friday, July 22, 2016

Raspberry Pi - The APT Command

The easiest to manage installation,upgradation and uninstallation APT is the command used in all the linux based operating systems. APT stands for Advance Packaging Tool. To install or remove packages one must have root user permissions. So user should be a sudoers or one must be logged in as a root user.


Obviously an internet connection is required for anyone to update the packages or install new ones. A point to note is that one cannot perform multiple installation at the same time.

APT keeps a url from where to get the software in the file located at:



/etc/apt/sources.list
 
One can see the contents of the file by using any installed editor:
 
sudo nano /etc/apt/sources.list 


Content of file sources.list


Before installing anything new lets update our list. The command for the same is apt-get update.

sudo apt-get update


Installing a package with apt-get



We will for example will install and uninstall a package called motion.
Typing the following command will prompt user for confirmation and will also provide disk usage information.


sudo apt-get install motion


Say yes and confirm the installation. Now we will move forward to removing the installed package of motion.

Removing a package with apt-get


We will now completely remove the package and its dependencies using command purge.

sudo apt-get purge motion

This will remove the package and all associated configuration files. The user is prompted for removal. Another similar command is the remove command which can be used to uninstall a package
 
sudo apt-get remove motion

The user is prompted to confirm the removal.

Raspberry Pi - My Experiments with Raspberry Pi

Unless and until you are not living under a rock everybody knows what is a raspberry pi. It is a small embedded linux based computer(Yes it is a computer. Almost full blown computer with limitations)

The official site for the same is:
https://www.raspberrypi.org/

One can find list of all the available pi boards, communities, amazing projects, host your own project and many many many more things.

There is also a long list of OSes that one can install on raspberry many generic and some serving a specific purpose.

I am a control engineer i develop control firmware for a living. The raspberry pi has provided a lot of options for prototyping algorithms like never before. Here i am going to log all the things that i experiment with my Raspberry Pi. Some might be old, some new and some totally badass but its just a log a kind of memory.

I assume that you have a simple setup of Raspberry pi and a computer ready.
I will be using putty for communicating with my pi.

So in the label raspberry pi you can find my experiments with raspberry pi.