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

Re: helping script



On Fri, Feb 18, 2005 at 10:52:48PM +0000, Helder Correia wrote:
> Hello!
Hi,

> I have used many GNU/Linux systems for 8 years, but only very recently I 
> "found" Debian, or at least the real wonder it is :)
> I would like to start the process of becoming a DD as soon as possible, so I 
> want to learn how to package.
> So, I wrote the following script in order to help me finding the dependencies 
> of an application/library. It (hopefully) outputs all needed libraries 
> package names sorted and with no duplicates.
> I'd like to ask the experienced developers if it outputs the correct 
> information and if it can be improved (example of usage: deps /usr/bin/kcalc)
> 
> #######################################
tempfile=`tempfile` would be better:)

On that note,
dpkg -S $(objdump -p $1 |grep NEEDED |awk '{print $2}') |cut -d: -f1 |sort -u

Justin



Reply to: