Releases#

  • stable: Debian 9 (stretch)

  • testing: buster

  • unstable: sid

See also:

Installation#

Installing Debian Stable#

To install Debian Stable, download Debian ISO, then create a VM with KVM.

$ cd /var/lib/libvirt/images
$ wget ``\ ```https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-9.5.0-amd64-netinst.iso <https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-9.5.0-amd64-netinst.iso>`__
$ virt-install --name debian --memory 1024 --disk size=10 --cdrom /var/lib/libvirt/images/debian-9.5.0-amd64-netinst.iso

Verify with the following command:

$ cat /etc/debian_version
9.5

Upgrading to Debian Unstable#

To upgrade to Debian Unstable, edit /etc/apt/sources.list, replace stable (e.g. stretch) to unstable:

deb ``\ ```http://ftp.us.debian.org/debian/ <http://ftp.us.debian.org/debian/>`__`` unstable main``
deb-src ``\ ```http://ftp.us.debian.org/debian/ <http://ftp.us.debian.org/debian/>`__`` unstable main``
deb ``\ ```http://security.debian.org/debian-security <http://security.debian.org/debian-security>`__`` unstable/updates main``
deb-src ``\ ```http://security.debian.org/debian-security <http://security.debian.org/debian-security>`__`` unstable/updates main``
deb ``\ ```http://ftp.us.debian.org/debian/ <http://ftp.us.debian.org/debian/>`__`` unstable-updates main``
deb-src ``\ ```http://ftp.us.debian.org/debian/ <http://ftp.us.debian.org/debian/>`__`` unstable-updates main``

Then execute:

$ apt update
$ apt upgrade
$ apt autoremove

Verify with the following command:

``$ cat /etc/debian_version ``
buster/sid

Running Debian Container#

To run Debian container:

$ docker run --name=debian --detach -i debian
$ docker exec debian cat /etc/issue

Setup#

Giving Sudo Permission#

To give sudo permission:

$ adduser ``\ `` sudo

The user must log out and log back in.

Package Management#

To list available packages:

$ apt list

To list installed packages:

$ apt list --installed

To list installed files:

``$ dpkg -L ``

To install a package file:

``$ dpkg -i ``

Development#

See also:

References#