SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2012-11-14 07:48:12

AlanD
#! CrunchBanger
Registered: 2011-05-12
Posts: 142

Question about the happenings and doings of apt-get

Let us say that I install a package with apt-get. Somewhere it records that fact, and remembers what it put where. If I build and install a package by hand, apt doesn't really know about it. Likewise on a system that uses yum or pacman, they each remember their actions.

Yum, apt and pacman cant really track each other, so it is dangerous to install two on one system.

So here is my question: where does apt-get log the changes it makes to my system? Bonus points for showing how pacman does it differently. I can always ask that at the arch forums.


Nerds that build or deploy tongue

Offline

Be excellent to each other!

#2 2012-11-14 12:16:49

ivanovnegro
Ivan #000000
From: unstable madness
Registered: 2011-06-02
Posts: 5,427

Re: Question about the happenings and doings of apt-get

Apt-get logs are in:

/var/log/dpkg.log

Offline

#3 2012-11-14 13:32:35

VastOne
#! Ranger
From: V-Ger
Registered: 2011-04-26
Posts: 10,163
Website

Re: Question about the happenings and doings of apt-get

/var/log/history.log 

&

/var/log/term.log 

also give overview information on what has been installed.


VSIDO | Words That Build Or Destroy

We do not run from challenges, they become new innovations within VSIDO!

Offline

#4 2012-11-14 20:22:06

AlanD
#! CrunchBanger
Registered: 2011-05-12
Posts: 142

Re: Question about the happenings and doings of apt-get

Thanks, I knew about those.  Logs seem to be more intended for human eyes. I wasn't trying to waste your time with an easy question like that. But I guess that you two did says something about the helpfulness of the forumites. Thanks.

Those logs feature duplicate entries if you install, remove and re-install packages. I imagine it would be very fussy(and eventually time consuming) for apt and dpkg to use those for its personal book keeping.

Further, they seem more overviews than records of particular details. For example, if leafpad depends on a shared object also used by geany, and I remove geany, apt knows to leave that library alone; something else depends on it. Where does apt/dpkg store than info? That is what I am after.

Last edited by AlanD (2012-11-14 20:22:56)


Nerds that build or deploy tongue

Offline

#5 2012-11-14 21:06:04

ivanovnegro
Ivan #000000
From: unstable madness
Registered: 2011-06-02
Posts: 5,427

Re: Question about the happenings and doings of apt-get

There are so many logs and they are usually stored in /var/log, I think we just need the correct terminology but then I do not really bother with logs. Just take a look into that directory and see what you find.

apt-cache depends <package>

e.g. shows you the dependencies of a specific package even recommends.

Maybe you should consider to take a look into the Debian documentation, something like the Debian Administrator Handbook, you can install that too if you are on Waldorf.
Personally I use only apt and I use it for everything related to Debian's package management and to administer my system.

Last edited by ivanovnegro (2012-11-14 21:06:56)

Offline

#6 2012-11-15 05:15:18

machinebacon
#! unstable
From: China
Registered: 2009-07-02
Posts: 6,634
Website

Re: Question about the happenings and doings of apt-get

dpkg works with local files, APT first downloads the cache and uses dpkg mechanism to 'install' the packages from the cache via a download/media. dpkg is 'just' a part of APT (which could also be aptitude or wajig)

If you want to see the differences, check a pkgbuild file in Arch (contains info on how to build a package) and extract a .deb (contains the tree how it is copied to your computer together with a control file) with an archiver program

The Control file in the .deb package is where the package manager gets its info from: dependencies, architecture, breaks, etc.

Offline

#7 2012-11-15 09:10:09

el_koraco
#!/loony/bun
From: inside Ed
Registered: 2011-07-25
Posts: 4,749

Re: Question about the happenings and doings of apt-get

All you need to know is in /var/lib/dpkg

Offline

#8 2012-11-15 16:58:27

AlanD
#! CrunchBanger
Registered: 2011-05-12
Posts: 142

Re: Question about the happenings and doings of apt-get

Thanks el_koraco!


Nerds that build or deploy tongue

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo