- sudo allows a permitted user to execute a command as the superuser or another user.
- using option '-s'
fiesta@fiesta-VirtualBox:~/Desktop$ sudo -s [sudo] password for fiesta: root@fiesta-VirtualBox:~/Desktop#
- using option '-i'
fiesta@fiesta-VirtualBox:~$ sudo -i [sudo] password for fiesta: root@fiesta-VirtualBox:~#
- using sudo su
fiesta@fiesta-VirtualBox:~$ sudo su [sudo] password for fiesta: root@fiesta-VirtualBox:/home/fiesta#
- Download the file and go to the Target folder.
- Open the Terminal in the Target folder.
- Execute
sudo apt install ./<file_name>.deb
NOTE: In the following example, we have .deb chrome file from the offical webite,
fiesta@fiesta-VirtualBox:~$ cd Downloads
fiesta@fiesta-VirtualBox:~/Downloads$ ls
google-chrome.deb
fiesta@fiesta-VirtualBox:~/Downloads$ sudo apt install ./google-chrome.deb
[sudo] password for fiesta:
Reading package lists... Done
Building dependency tree....