Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   (View Single Post)  
Old 21st August 2012
IdOp's Avatar
IdOp IdOp is offline
Too dumb for a smartphone
Join Date: May 2008
Location: twisting on the daemon's fork(2)
Posts: 834
Default finding package dependencies?

Originally Posted by ocicat
... complete list of packages installed ...

... list of everything ...
I'm not trying to be overly argumentative , and it's certainly possible my understanding is lacking in experience, but I think the key words there are "complete" and "everything". Let me give an example first.

Suppose I already have 80 packages installed. Now I want to install another 5 packages. Due to dependencies let's suppose another 15 packages are also installed that way. So I installed 20 packages today for a total of 100 overall. And of those 20, I may at first only know what 5 of them are (or maybe a few more, but not all 20).

Now if I use pkg_info to get a complete list of everything, I can't really tell which are the new packages can I ? If I display the install messages for everything, then 4 out of 5 messages are likely to be ones I've already seen; not very efficient.

I could, of course, get a directory of /var/db/pkg, grep it for today's date, and sort things out that way. But that is getting into what I referred to as "doing it by hand", not using pkg_info.

Now one other thing to add. During a pkg_add, there can be errors, failures, etc. It's primarily for this reason that I like to do a large pkg_add inside of script. It gives me a record of all that happened and I can see exactly what went wrong, if anything. So, given that I have the typescript file there, an added benefit is being able to search it for the install messages from only the new packages that were added today.

Does that make sense or am I still missing something? Thank you for your critiques, they are welcome.

Last edited by IdOp; 21st August 2012 at 07:07 PM. Reason: spelling
Reply With Quote

Thread Tools
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
K3B not finding writer. maxrussell FreeBSD General 5 7th February 2009 11:41 AM
finding files by uid carpman FreeBSD General 3 5th February 2009 07:51 PM
How to handle conflicting port dependencies? Aux FreeBSD Ports and Packages 2 29th September 2008 06:44 AM
how to check package dependencies? bsdnewbie999 OpenBSD Packages and Ports 5 31st July 2008 04:05 AM
hey, help finding something plz cheese11 FreeBSD General 3 20th June 2008 11:24 PM

All times are GMT. The time now is 09:33 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick