LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-23-2022, 12:39 AM   #1
linux-man
Member
 
Registered: Nov 2016
Location: Geneva
Distribution: native install of Parrot Home Edition 5.0 Debian (no security tools) 64 bit, KDE, 5.14.0-9parrot1,
Posts: 872

Rep: Reputation: Disabled
What's difference between sudo install and sudo dpkg -i?


What's difference between sudo install and sudo dpkg -i?
Ans what's the "i" for?
 
Old 03-23-2022, 01:30 AM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by linux-man View Post
What's difference between sudo install and sudo dpkg -i?
Ans what's the "i" for?
Code:
man install
(although I don't think that's what you meant)
Code:
man dpkg
We're not here to recite documentation for you.
 
1 members found this post helpful.
Old 03-23-2022, 05:15 AM   #3
Debian6to11
Member
 
Registered: Jan 2022
Location: Limassol, Cyprus
Distribution: Debian
Posts: 382
Blog Entries: 1

Rep: Reputation: 71
Quote:
Originally Posted by linux-man View Post
What's difference between sudo install and sudo dpkg -i?
Ans what's the "i" for?
I suppose you meant 'sudo apt istall' and 'sudo dpkg -i'.
sudo dpkg -i <package>: install <package>

apt is a high level interface to the package manager.
dpkg is a low level interface to the package manager.

The difference: apt takes care of the dependencies, dpkg does not.

And read the man pages as suggested.
 
2 members found this post helpful.
Old 03-24-2022, 02:48 PM   #4
larstrier
Member
 
Registered: Dec 2019
Distribution: Debian
Posts: 97

Rep: Reputation: 24
Quote:
Originally Posted by linux-man View Post
What's difference between sudo install and sudo dpkg -i?
Ans what's the "i" for?
Sudo? What is that?
Sorry, I use Debian.
I don't use Ubuntu Kylin.
 
Old 04-01-2022, 09:21 AM   #5
kareempharmacist
Member
 
Registered: Jan 2012
Location: Cairo, Egypt
Distribution: MX Linux, Ubuntu 18.04
Posts: 336

Rep: Reputation: 42
You use the sudo command to gain root privilege. It is required to install Debian packages. Normal users are not able to install Debian packages. Of course, you will be asked to provide the root user password.

Quote:
sudo dpkg -i package-file
works with a package file that is already available on your hard disk. The system doesn't need to download it from the repositories (like stores of thousand of packages. I think your question is related to your printer problem. linux-newbie-8/how-to-i-get-my-printer-to-be-accepted-by-linux
I you have a certain .deb package file on your hard disk, you will have to use this command.
If you don't then
Quote:
sudo apt install package-name
apt will search for the package name and generate a list of dependencies (if any) then it will represent you with a list of the required packages and ask you to download them. If you agreed (by providing a y/n answer) it will download the packages automatically and install them. For example:
Quote:
sudo apt install smplayer
will make apt search for the required packages required by Smplayer(if not installed) then list them on the screen and asks you if you accept to download and install them.
The same goes for Ssupertuxkart and a lot of games or apps.
Most of the time you will need to use
Quote:
sudo apt install package-name
Of course, you will have to replace package-name with the exact name of the package you want to install.
I have to say that there are many GUI frontends to make make installing software easier than it was before. I don't use Parrot Linux but a quick search in their wiki or documentation will do. Most of the time Graphical interface will suffice. You can use Gdebi to graphically install .deb packages without using the command line.
Please take a look at this:
https://parrotlinux.org/docs/parrot-...anagement.html
If you have any questions, feel free to ask.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
dpkg was interrupted, you must now run sudo dpkg --configure -a JakeWalker21 Linux - Newbie 19 05-15-2021 12:01 AM
Input/Output Error; dpkg sub-process /usr/bin/dpkg returned and error code (2) NosLycn Linux - Software 7 12-12-2011 02:50 AM
[SOLVED] difference between dpkg -l and dpkg -get-selections austinium Debian 2 08-02-2011 06:12 AM
Difference between "sudo su" and "sudo su -"? Rush_898 Linux - Newbie 1 10-17-2007 02:02 PM
What is the difference between dpkg and aptitude/apt-get? Akhran Debian 13 03-13-2006 11:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration