List of recently installed apt packages












6















I just spent an hour trying to solve dependencies to build freeCAD from their slightly outdated Wiki.



Is there a way to get the packages I installed in the last hour or day with apt-get or aptitude?



My first try was ls -t /var/apt/cache/archive but that list packages with weird dates. for example, one I'm sure Installed just now, python2.7-dev, is listed as "Mar 17 2014". The only thing listed as today are a few security updates I did this morning. And there are dirs there marked from 2006. I didn't even have that install that long ago.



I can't use command line history either because I used a mix of apt-get install and aptitude. also I had several terminals and history got screwy after a while.



edit:



@jmonrio pointed to an excellent answer, but that gives me a ton of packages when i only installed a handful. it does not differentiate from what i asked to be installed from what was installed as part of the dependency chain.



Do I have any hope of getting the minimum install line for that history? i.e. without the automatically included ones.










share|improve this question




















  • 2





    The same question is resolved in AskUbuntu: askubuntu.com/questions/21657/…

    – jmonrio
    Jan 29 '15 at 9:06
















6















I just spent an hour trying to solve dependencies to build freeCAD from their slightly outdated Wiki.



Is there a way to get the packages I installed in the last hour or day with apt-get or aptitude?



My first try was ls -t /var/apt/cache/archive but that list packages with weird dates. for example, one I'm sure Installed just now, python2.7-dev, is listed as "Mar 17 2014". The only thing listed as today are a few security updates I did this morning. And there are dirs there marked from 2006. I didn't even have that install that long ago.



I can't use command line history either because I used a mix of apt-get install and aptitude. also I had several terminals and history got screwy after a while.



edit:



@jmonrio pointed to an excellent answer, but that gives me a ton of packages when i only installed a handful. it does not differentiate from what i asked to be installed from what was installed as part of the dependency chain.



Do I have any hope of getting the minimum install line for that history? i.e. without the automatically included ones.










share|improve this question




















  • 2





    The same question is resolved in AskUbuntu: askubuntu.com/questions/21657/…

    – jmonrio
    Jan 29 '15 at 9:06














6












6








6


1






I just spent an hour trying to solve dependencies to build freeCAD from their slightly outdated Wiki.



Is there a way to get the packages I installed in the last hour or day with apt-get or aptitude?



My first try was ls -t /var/apt/cache/archive but that list packages with weird dates. for example, one I'm sure Installed just now, python2.7-dev, is listed as "Mar 17 2014". The only thing listed as today are a few security updates I did this morning. And there are dirs there marked from 2006. I didn't even have that install that long ago.



I can't use command line history either because I used a mix of apt-get install and aptitude. also I had several terminals and history got screwy after a while.



edit:



@jmonrio pointed to an excellent answer, but that gives me a ton of packages when i only installed a handful. it does not differentiate from what i asked to be installed from what was installed as part of the dependency chain.



Do I have any hope of getting the minimum install line for that history? i.e. without the automatically included ones.










share|improve this question
















I just spent an hour trying to solve dependencies to build freeCAD from their slightly outdated Wiki.



Is there a way to get the packages I installed in the last hour or day with apt-get or aptitude?



My first try was ls -t /var/apt/cache/archive but that list packages with weird dates. for example, one I'm sure Installed just now, python2.7-dev, is listed as "Mar 17 2014". The only thing listed as today are a few security updates I did this morning. And there are dirs there marked from 2006. I didn't even have that install that long ago.



I can't use command line history either because I used a mix of apt-get install and aptitude. also I had several terminals and history got screwy after a while.



edit:



@jmonrio pointed to an excellent answer, but that gives me a ton of packages when i only installed a handful. it does not differentiate from what i asked to be installed from what was installed as part of the dependency chain.



Do I have any hope of getting the minimum install line for that history? i.e. without the automatically included ones.







ubuntu debian apt-get aptitude apt






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 29 '15 at 9:18







gcb

















asked Jan 29 '15 at 8:53









gcbgcb

1,61263359




1,61263359








  • 2





    The same question is resolved in AskUbuntu: askubuntu.com/questions/21657/…

    – jmonrio
    Jan 29 '15 at 9:06














  • 2





    The same question is resolved in AskUbuntu: askubuntu.com/questions/21657/…

    – jmonrio
    Jan 29 '15 at 9:06








2




2





The same question is resolved in AskUbuntu: askubuntu.com/questions/21657/…

– jmonrio
Jan 29 '15 at 9:06





The same question is resolved in AskUbuntu: askubuntu.com/questions/21657/…

– jmonrio
Jan 29 '15 at 9:06










2 Answers
2






active

oldest

votes


















6














Take a look at this answer:



Command to list recently installed packages that were installed via any method (apt-get, Software Center et al.):



grep " install " /var/log/dpkg.log


You could run this command to list only the recently installed package names,



awk '$3~/^install$/ {print $4;}' /var/log/dpkg.log





share|improve this answer





















  • 1





    this still shows all the installed dependencies, but i think this is the best that we can get.

    – gcb
    Feb 1 '15 at 1:41



















1














If you use sudo to start apt or aptitude, all commands are written to /var/log/auth.log. So a grep apt /var/log/auth.log should give you the commands. In my case (Debian), grep '/usr/bin/apt' auth.log* | awk '{print $15}' returned all apt/aptitude commands neatly. Adjust accordingly. Good luck!






share|improve this answer
























  • but as i said, history alone is not enough because some packages where selected in the graphic mode of apitude

    – gcb
    Jan 30 '15 at 22:59











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
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',
autoActivateHeartbeat: false,
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%2fsuperuser.com%2fquestions%2f871004%2flist-of-recently-installed-apt-packages%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes









6














Take a look at this answer:



Command to list recently installed packages that were installed via any method (apt-get, Software Center et al.):



grep " install " /var/log/dpkg.log


You could run this command to list only the recently installed package names,



awk '$3~/^install$/ {print $4;}' /var/log/dpkg.log





share|improve this answer





















  • 1





    this still shows all the installed dependencies, but i think this is the best that we can get.

    – gcb
    Feb 1 '15 at 1:41
















6














Take a look at this answer:



Command to list recently installed packages that were installed via any method (apt-get, Software Center et al.):



grep " install " /var/log/dpkg.log


You could run this command to list only the recently installed package names,



awk '$3~/^install$/ {print $4;}' /var/log/dpkg.log





share|improve this answer





















  • 1





    this still shows all the installed dependencies, but i think this is the best that we can get.

    – gcb
    Feb 1 '15 at 1:41














6












6








6







Take a look at this answer:



Command to list recently installed packages that were installed via any method (apt-get, Software Center et al.):



grep " install " /var/log/dpkg.log


You could run this command to list only the recently installed package names,



awk '$3~/^install$/ {print $4;}' /var/log/dpkg.log





share|improve this answer















Take a look at this answer:



Command to list recently installed packages that were installed via any method (apt-get, Software Center et al.):



grep " install " /var/log/dpkg.log


You could run this command to list only the recently installed package names,



awk '$3~/^install$/ {print $4;}' /var/log/dpkg.log






share|improve this answer














share|improve this answer



share|improve this answer








edited Jan 17 at 6:26









Dan Dascalescu

2,39842747




2,39842747










answered Jan 29 '15 at 9:37









duDEduDE

13.3k53138




13.3k53138








  • 1





    this still shows all the installed dependencies, but i think this is the best that we can get.

    – gcb
    Feb 1 '15 at 1:41














  • 1





    this still shows all the installed dependencies, but i think this is the best that we can get.

    – gcb
    Feb 1 '15 at 1:41








1




1





this still shows all the installed dependencies, but i think this is the best that we can get.

– gcb
Feb 1 '15 at 1:41





this still shows all the installed dependencies, but i think this is the best that we can get.

– gcb
Feb 1 '15 at 1:41













1














If you use sudo to start apt or aptitude, all commands are written to /var/log/auth.log. So a grep apt /var/log/auth.log should give you the commands. In my case (Debian), grep '/usr/bin/apt' auth.log* | awk '{print $15}' returned all apt/aptitude commands neatly. Adjust accordingly. Good luck!






share|improve this answer
























  • but as i said, history alone is not enough because some packages where selected in the graphic mode of apitude

    – gcb
    Jan 30 '15 at 22:59
















1














If you use sudo to start apt or aptitude, all commands are written to /var/log/auth.log. So a grep apt /var/log/auth.log should give you the commands. In my case (Debian), grep '/usr/bin/apt' auth.log* | awk '{print $15}' returned all apt/aptitude commands neatly. Adjust accordingly. Good luck!






share|improve this answer
























  • but as i said, history alone is not enough because some packages where selected in the graphic mode of apitude

    – gcb
    Jan 30 '15 at 22:59














1












1








1







If you use sudo to start apt or aptitude, all commands are written to /var/log/auth.log. So a grep apt /var/log/auth.log should give you the commands. In my case (Debian), grep '/usr/bin/apt' auth.log* | awk '{print $15}' returned all apt/aptitude commands neatly. Adjust accordingly. Good luck!






share|improve this answer













If you use sudo to start apt or aptitude, all commands are written to /var/log/auth.log. So a grep apt /var/log/auth.log should give you the commands. In my case (Debian), grep '/usr/bin/apt' auth.log* | awk '{print $15}' returned all apt/aptitude commands neatly. Adjust accordingly. Good luck!







share|improve this answer












share|improve this answer



share|improve this answer










answered Jan 29 '15 at 10:04









agtoeveragtoever

5,12911431




5,12911431













  • but as i said, history alone is not enough because some packages where selected in the graphic mode of apitude

    – gcb
    Jan 30 '15 at 22:59



















  • but as i said, history alone is not enough because some packages where selected in the graphic mode of apitude

    – gcb
    Jan 30 '15 at 22:59

















but as i said, history alone is not enough because some packages where selected in the graphic mode of apitude

– gcb
Jan 30 '15 at 22:59





but as i said, history alone is not enough because some packages where selected in the graphic mode of apitude

– gcb
Jan 30 '15 at 22:59


















draft saved

draft discarded




















































Thanks for contributing an answer to Super User!


  • 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%2fsuperuser.com%2fquestions%2f871004%2flist-of-recently-installed-apt-packages%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

"Incorrect syntax near the keyword 'ON'. (on update cascade, on delete cascade,)

Alcedinidae

Origin of the phrase “under your belt”?