What does “sudo apt install” do? (no package name next to it)











up vote
-2
down vote

favorite












Okay so, I just randomly typed in the terminal sudo apt install and hit enter (I was bored, okay) expecting it to tell me that I need to enter a package name to install something. After that the PC coincidentally shut off because of a power outage , so I didn't actually read what it did because I wasn't looking. Probably a dumb question but I am just curious if it actually installed anything on the system.



edit: checked logs and it didn't actually install anything.










share|improve this question




















  • 1




    It will do nothing
    – Alvin Liang
    Nov 21 at 10:31















up vote
-2
down vote

favorite












Okay so, I just randomly typed in the terminal sudo apt install and hit enter (I was bored, okay) expecting it to tell me that I need to enter a package name to install something. After that the PC coincidentally shut off because of a power outage , so I didn't actually read what it did because I wasn't looking. Probably a dumb question but I am just curious if it actually installed anything on the system.



edit: checked logs and it didn't actually install anything.










share|improve this question




















  • 1




    It will do nothing
    – Alvin Liang
    Nov 21 at 10:31













up vote
-2
down vote

favorite









up vote
-2
down vote

favorite











Okay so, I just randomly typed in the terminal sudo apt install and hit enter (I was bored, okay) expecting it to tell me that I need to enter a package name to install something. After that the PC coincidentally shut off because of a power outage , so I didn't actually read what it did because I wasn't looking. Probably a dumb question but I am just curious if it actually installed anything on the system.



edit: checked logs and it didn't actually install anything.










share|improve this question















Okay so, I just randomly typed in the terminal sudo apt install and hit enter (I was bored, okay) expecting it to tell me that I need to enter a package name to install something. After that the PC coincidentally shut off because of a power outage , so I didn't actually read what it did because I wasn't looking. Probably a dumb question but I am just curious if it actually installed anything on the system.



edit: checked logs and it didn't actually install anything.







command-line






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 22 at 12:12









Sravan

76




76










asked Nov 21 at 10:22









Zethex

194




194








  • 1




    It will do nothing
    – Alvin Liang
    Nov 21 at 10:31














  • 1




    It will do nothing
    – Alvin Liang
    Nov 21 at 10:31








1




1




It will do nothing
– Alvin Liang
Nov 21 at 10:31




It will do nothing
– Alvin Liang
Nov 21 at 10:31










1 Answer
1






active

oldest

votes

















up vote
4
down vote



accepted










On my system, I see:



$ sudo apt install
[sudo] password for dkb:
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
$


If you haven't updated your system in some time and if you have software updates pending you'll probably see the number of packages available to be updated as well as the advice to run apt list --upgradable.



var/log/apt/history.log and /var/log/dpkg.log and the corresponding older archived logs store information relating to packages installed or deleted by the system's package management process.



By the way,




I just randomly typed in the terminal "sudo apt install" and hit enter (I was bored, okay)




is a little disturbing. There's nasty code out there that could damage one's system.



Further reading: https://www.debian.org/doc/manuals/debian-faq/ch-pkg_basics.en.html






share|improve this answer





















  • Yup, I should have not done that. That was a silly mistake. Is this anything to worry about? Would I be able to remove it and would it completely be gone? I am okay with re-installing.
    – Zethex
    Nov 22 at 5:16










  • I don't think anything bad happened with what you asked about. I was just commenting about being careful when executing code you read about somewhere or a "friend" suggests.
    – DK Bose
    Nov 22 at 5:56






  • 1




    Ok. It said 0 upgraded, 0 installed etc so this means it didn't actually install or write anything to the disk. Am i correct?
    – Zethex
    Nov 22 at 6:39










  • That's correct.
    – DK Bose
    Nov 22 at 6:46











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1094758%2fwhat-does-sudo-apt-install-do-no-package-name-next-to-it%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
4
down vote



accepted










On my system, I see:



$ sudo apt install
[sudo] password for dkb:
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
$


If you haven't updated your system in some time and if you have software updates pending you'll probably see the number of packages available to be updated as well as the advice to run apt list --upgradable.



var/log/apt/history.log and /var/log/dpkg.log and the corresponding older archived logs store information relating to packages installed or deleted by the system's package management process.



By the way,




I just randomly typed in the terminal "sudo apt install" and hit enter (I was bored, okay)




is a little disturbing. There's nasty code out there that could damage one's system.



Further reading: https://www.debian.org/doc/manuals/debian-faq/ch-pkg_basics.en.html






share|improve this answer





















  • Yup, I should have not done that. That was a silly mistake. Is this anything to worry about? Would I be able to remove it and would it completely be gone? I am okay with re-installing.
    – Zethex
    Nov 22 at 5:16










  • I don't think anything bad happened with what you asked about. I was just commenting about being careful when executing code you read about somewhere or a "friend" suggests.
    – DK Bose
    Nov 22 at 5:56






  • 1




    Ok. It said 0 upgraded, 0 installed etc so this means it didn't actually install or write anything to the disk. Am i correct?
    – Zethex
    Nov 22 at 6:39










  • That's correct.
    – DK Bose
    Nov 22 at 6:46















up vote
4
down vote



accepted










On my system, I see:



$ sudo apt install
[sudo] password for dkb:
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
$


If you haven't updated your system in some time and if you have software updates pending you'll probably see the number of packages available to be updated as well as the advice to run apt list --upgradable.



var/log/apt/history.log and /var/log/dpkg.log and the corresponding older archived logs store information relating to packages installed or deleted by the system's package management process.



By the way,




I just randomly typed in the terminal "sudo apt install" and hit enter (I was bored, okay)




is a little disturbing. There's nasty code out there that could damage one's system.



Further reading: https://www.debian.org/doc/manuals/debian-faq/ch-pkg_basics.en.html






share|improve this answer





















  • Yup, I should have not done that. That was a silly mistake. Is this anything to worry about? Would I be able to remove it and would it completely be gone? I am okay with re-installing.
    – Zethex
    Nov 22 at 5:16










  • I don't think anything bad happened with what you asked about. I was just commenting about being careful when executing code you read about somewhere or a "friend" suggests.
    – DK Bose
    Nov 22 at 5:56






  • 1




    Ok. It said 0 upgraded, 0 installed etc so this means it didn't actually install or write anything to the disk. Am i correct?
    – Zethex
    Nov 22 at 6:39










  • That's correct.
    – DK Bose
    Nov 22 at 6:46













up vote
4
down vote



accepted







up vote
4
down vote



accepted






On my system, I see:



$ sudo apt install
[sudo] password for dkb:
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
$


If you haven't updated your system in some time and if you have software updates pending you'll probably see the number of packages available to be updated as well as the advice to run apt list --upgradable.



var/log/apt/history.log and /var/log/dpkg.log and the corresponding older archived logs store information relating to packages installed or deleted by the system's package management process.



By the way,




I just randomly typed in the terminal "sudo apt install" and hit enter (I was bored, okay)




is a little disturbing. There's nasty code out there that could damage one's system.



Further reading: https://www.debian.org/doc/manuals/debian-faq/ch-pkg_basics.en.html






share|improve this answer












On my system, I see:



$ sudo apt install
[sudo] password for dkb:
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
$


If you haven't updated your system in some time and if you have software updates pending you'll probably see the number of packages available to be updated as well as the advice to run apt list --upgradable.



var/log/apt/history.log and /var/log/dpkg.log and the corresponding older archived logs store information relating to packages installed or deleted by the system's package management process.



By the way,




I just randomly typed in the terminal "sudo apt install" and hit enter (I was bored, okay)




is a little disturbing. There's nasty code out there that could damage one's system.



Further reading: https://www.debian.org/doc/manuals/debian-faq/ch-pkg_basics.en.html







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 21 at 11:45









DK Bose

12.3k123983




12.3k123983












  • Yup, I should have not done that. That was a silly mistake. Is this anything to worry about? Would I be able to remove it and would it completely be gone? I am okay with re-installing.
    – Zethex
    Nov 22 at 5:16










  • I don't think anything bad happened with what you asked about. I was just commenting about being careful when executing code you read about somewhere or a "friend" suggests.
    – DK Bose
    Nov 22 at 5:56






  • 1




    Ok. It said 0 upgraded, 0 installed etc so this means it didn't actually install or write anything to the disk. Am i correct?
    – Zethex
    Nov 22 at 6:39










  • That's correct.
    – DK Bose
    Nov 22 at 6:46


















  • Yup, I should have not done that. That was a silly mistake. Is this anything to worry about? Would I be able to remove it and would it completely be gone? I am okay with re-installing.
    – Zethex
    Nov 22 at 5:16










  • I don't think anything bad happened with what you asked about. I was just commenting about being careful when executing code you read about somewhere or a "friend" suggests.
    – DK Bose
    Nov 22 at 5:56






  • 1




    Ok. It said 0 upgraded, 0 installed etc so this means it didn't actually install or write anything to the disk. Am i correct?
    – Zethex
    Nov 22 at 6:39










  • That's correct.
    – DK Bose
    Nov 22 at 6:46
















Yup, I should have not done that. That was a silly mistake. Is this anything to worry about? Would I be able to remove it and would it completely be gone? I am okay with re-installing.
– Zethex
Nov 22 at 5:16




Yup, I should have not done that. That was a silly mistake. Is this anything to worry about? Would I be able to remove it and would it completely be gone? I am okay with re-installing.
– Zethex
Nov 22 at 5:16












I don't think anything bad happened with what you asked about. I was just commenting about being careful when executing code you read about somewhere or a "friend" suggests.
– DK Bose
Nov 22 at 5:56




I don't think anything bad happened with what you asked about. I was just commenting about being careful when executing code you read about somewhere or a "friend" suggests.
– DK Bose
Nov 22 at 5:56




1




1




Ok. It said 0 upgraded, 0 installed etc so this means it didn't actually install or write anything to the disk. Am i correct?
– Zethex
Nov 22 at 6:39




Ok. It said 0 upgraded, 0 installed etc so this means it didn't actually install or write anything to the disk. Am i correct?
– Zethex
Nov 22 at 6:39












That's correct.
– DK Bose
Nov 22 at 6:46




That's correct.
– DK Bose
Nov 22 at 6:46


















draft saved

draft discarded




















































Thanks for contributing an answer to Ask Ubuntu!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1094758%2fwhat-does-sudo-apt-install-do-no-package-name-next-to-it%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

How to change which sound is reproduced for terminal bell?

Can I use Tabulator js library in my java Spring + Thymeleaf project?

Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents