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

Re: Finding deb packages for given Perl modules



hello,

> > % which afsp
> > afsp () {
> >     apt-file search $(echo "/$@" | sed -e 's|::|/|g ; s|-|/|g ; s|$|.pm|') | uniq
> > } 

I use something quiet similar:

deb_providing_pm () { while {read} {aptitude search "~nperl~d$REPLY" -F%p} }
clean_dpm () { sed 's/:.*//' | sort -u } 

make fixdeps | deb_providing_pm | clean_dpm > deps 

regards 


-- 
Marc Chantreux (eiro on github and freenode)
http://eiro.github.com/
http://eiro.github.com/atom.xml
"Don't believe everything you read on the Internet"
    -- Abraham Lincoln


Reply to: