List of recently installed apt packages
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
add a comment |
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
2
The same question is resolved in AskUbuntu: askubuntu.com/questions/21657/…
– jmonrio
Jan 29 '15 at 9:06
add a comment |
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
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
ubuntu debian apt-get aptitude apt
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
add a comment |
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
add a comment |
2 Answers
2
active
oldest
votes
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
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
add a comment |
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!
but as i said, history alone is not enough because some packages where selected in the graphic mode ofapitude
– gcb
Jan 30 '15 at 22:59
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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
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
add a comment |
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
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
add a comment |
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
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
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
add a comment |
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
add a comment |
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!
but as i said, history alone is not enough because some packages where selected in the graphic mode ofapitude
– gcb
Jan 30 '15 at 22:59
add a comment |
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!
but as i said, history alone is not enough because some packages where selected in the graphic mode ofapitude
– gcb
Jan 30 '15 at 22:59
add a comment |
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!
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!
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 ofapitude
– gcb
Jan 30 '15 at 22:59
add a comment |
but as i said, history alone is not enough because some packages where selected in the graphic mode ofapitude
– 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
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
2
The same question is resolved in AskUbuntu: askubuntu.com/questions/21657/…
– jmonrio
Jan 29 '15 at 9:06