Tuesday, September 15, 2015

How to unset environmental variable

For example, you set DJANGO=true environmental variable with command:
export DJANGO=true
To unset it run this command:
unset DJANGO

Sunday, September 13, 2015

How to display all available package versions in Ubuntu

To display all available package versions use next command:
apt-cache madison
For example:
vagrant@vagrant:~$ apt-cache madison redis-server
redis-server | 2:3.0.2-3~bpo8+1 | jessie-backports/main amd64 Packages
redis-server | 2:2.8.17-1+deb8u1 | jessie/updates/main amd64 Packages
redis-server | 2:2.8.17-1 | jessie/main amd64 Packages
     redis | 2:2.8.17-1 | jessie/main Sources
     redis | 2:2.8.17-1+deb8u1 | jessie/updates/main Sources