LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 09-27-2013, 12:15 PM   #1
mightymouse2045
LQ Newbie
 
Registered: Jun 2011
Posts: 7

Rep: Reputation: Disabled
Question Help listing installed files and searching for missing files


Hi,

I can't find a way to easily search for files installed by packages to confirm I don't have missing dependencies and was hoping someone could point me in the right direction, or help me script up what I have found so far....

What I want to be able to do is search for all files that should exist on my system (Ubuntu), by listing the contents of all installed packages, and then searching for those files in the locations they should exist in.

The reason behind this is that I have installed 3rd party NVidia drivers and want to remove them, but then how do I confirm that it hasn't removed files that were installed by another package libgl-mesa-glx for example.

That got me onto wanting to script it, so I am able to confirm the health of my system in general from time to time as packages get installed and removed over time.

I know I can use dpkg --get-selections and pipe that to a text file, and dpkg -L $package, or dlocate which will list the files installed by a given package but how can I pipe the installed packages list to dpkg, and then pipe the list of path/filenames to find to search for the files?

The other thing I'd like to be able to do is confirm the file size matches the one in the package if that's possible?

Hoping someone can help me out Thanks in advance!
 
Old 09-27-2013, 02:12 PM   #2
linosaurusroot
Member
 
Registered: Oct 2012
Distribution: OpenSuSE,RHEL,Fedora,OpenBSD
Posts: 808
Blog Entries: 2

Rep: Reputation: 203Reputation: 203Reputation: 203
I searched "dpkg verify" and this answer suggests there is no simple solution.

http://serverfault.com/questions/322...talled-package
 
Old 10-04-2013, 09:03 AM   #3
eklavya
Member
 
Registered: Mar 2013
Posts: 566

Rep: Reputation: 113Reputation: 113
To see all the files the package put onto your system, do this:
Code:
dpkg-query -L <package_name>

See Where a Package is Installed on Ubuntu
http://www.howtogeek.com/howto/ubunt...led-on-ubuntu/


(Debian/Ubuntu) Discover what package a file belongs to
http://www.commandlinefu.com/command...ile-belongs-to
 
Old 10-09-2013, 07:57 PM   #4
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,289

Rep: Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034
It seems to me that the simple soln is to just run an update cmd (however dpkg does that) after you've finished removing unwanted stuff.
If any reqd pkgs are missing, it will (should!) put them back
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux header files missing and v4l files unable to compile szutshi Linux - Newbie 5 09-13-2011 02:00 PM
Yum not finding/listing installed rpms - missing dependency guna_pmk Linux - Software 3 05-19-2010 05:31 AM
Missing .so files from (installed) libkrb53 arielCo Linux - Software 3 07-06-2009 08:30 AM
listing files and burning files - just a question radiodee1 Debian 1 11-26-2006 07:29 AM
Wine problem - missing files when running not installed programs TMH2 Linux - Software 2 06-28-2005 03:35 PM


All times are GMT -5. The time now is 12:07 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration