[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Querying packages about installed files



On 08 Dec 2005, Justin Guerin wrote:
> On Thursday 08 December 2005 04:02, Jim Holland wrote:
> > Hi all
> >
> > I have been very impressed with aptitude for the way that it handles the
> > installation of packages.  I have recently moved from Red Hat and this is
> > a vast improvement.  However I have not been able to see a simple way of
> > listing what actual files have been installed, or to check whether they
> > have been changed, corrupted or have incorrect permissions.  With Red Hat
> > you have the following very useful options:
> >
> > 	rpm -ql [packagename] to get a list of installed files
> > and
> > 	rpm --verify [packagename] to check the installed files
> >
> > Are there any similar equivalents with aptitude?
> >
> > Regards
> >
> > Jim Holland
> > System Administrator
> > MANGO - Zimbabwe's non-profit e-mail service
> 
> dpkg -L <pkgname> will also list all files installed by that package.  
> debsums, as Andrei mentioned, will verify the installed files.
> 
> Justin Guerin

Also have a look at wajig. One of the best-kept secrets in linux IMO.
Wajig list and wajig integrity do these things very neatly.

Anthony


-- 
Anthony Campbell - ac@acampbell.org.uk 
Microsoft-free zone - Using Linux Gnu-Debian
http://www.acampbell.org.uk (blog, book reviews, 
on-line books and sceptical articles)



Reply to: