depfinder

Non release banter
Post Reply
Jack
Contributor
Contributor
Posts: 1063
Joined: 09 Aug 2013, 14:25
Distribution: Porteus 3.2.rc5 Mate 64 bit
Location: Marysville, OHIO USA

depfinder

Post#1 by Jack » 06 Sep 2013, 19:00

I found this packages "depfinder" it finds dep fast. What I like for it to do is do a directory at one time and not a fine at a time. Can someone tell me how to write a script or write it for me?

Jack
I just like Slackware because I think it teach you about Linux to build packages where Ubuntu is like Windows you just install programs you want.

User avatar
francois
Contributor
Contributor
Posts: 4937
Joined: 28 Dec 2010, 14:25
Distribution: kde xfce porteus manjaro kubun
Location: Enfin l'été, le changement climatique attendu: le soleil.

Re: depfinder

Post#2 by francois » 06 Sep 2013, 20:13

Very interesting package, jack. Thanks a lot.

depfinder would have been developped by pagan, one of the administrator of salix os. See the link, citation:
http://sourceforge.net/projects/depfinder/
depfinder reports the dependencies of Slackware packages. It is faster than previous tools used for the same purpose and even has support for utilizing multiple CPUs/cores
Other info on depfinder:
http://depfinder.sourceforge.net/
Last edited by francois on 06 Sep 2013, 21:52, edited 1 time in total.
Voltaire: Le mieux est l'ennemi du bien.

Jack
Contributor
Contributor
Posts: 1063
Joined: 09 Aug 2013, 14:25
Distribution: Porteus 3.2.rc5 Mate 64 bit
Location: Marysville, OHIO USA

Re: depfinder

Post#3 by Jack » 06 Sep 2013, 20:44

How hard would it be to write a script to go with depfinder to find all the dependencies in a directory? :wall:
I just like Slackware because I think it teach you about Linux to build packages where Ubuntu is like Windows you just install programs you want.

User avatar
brokenman
Site Admin
Site Admin
Posts: 5456
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v3.2rcX all desktops
Location: Brazil
Contact:

Re: depfinder

Post#4 by brokenman » 06 Sep 2013, 23:33

Useful little tool.

Copy the following into a script called getdeps.sh

#!/bin/bash

if [ `find $1 -type f|egrep ".txz|.tgz"|wc -l` -eq 0 ]; then
echo "No packages found!!"
exit
fi

for a in `find $1 -type f|egrep ".tgz|.txz"`; do
depfinder $a
done


Imagine I have some packages in /tmp/myfolder. I would put this script in /usr/bin and then simply type:

getdeps.sh /tmp/myfolder

Keep in mind you can type getde[TAB] ## [TAB] here means just type the first few letters and then hit the TAB key to autocomplete the script name.
How do i become super user?
Wear your underpants on the outside and put on a cape.

Jack
Contributor
Contributor
Posts: 1063
Joined: 09 Aug 2013, 14:25
Distribution: Porteus 3.2.rc5 Mate 64 bit
Location: Marysville, OHIO USA

Re: depfinder

Post#5 by Jack » 07 Sep 2013, 01:50

I can find grep but not egrep can anyone help?
I just like Slackware because I think it teach you about Linux to build packages where Ubuntu is like Windows you just install programs you want.

User avatar
francois
Contributor
Contributor
Posts: 4937
Joined: 28 Dec 2010, 14:25
Distribution: kde xfce porteus manjaro kubun
Location: Enfin l'été, le changement climatique attendu: le soleil.

Re: depfinder

Post#6 by francois » 07 Sep 2013, 03:37

Please jack, let's put in a little autonomy:

google egrep:
http://www.cs.columbia.edu/~tal/3261/fa ... torial.htm
Voltaire: Le mieux est l'ennemi du bien.

User avatar
brokenman
Site Admin
Site Admin
Posts: 5456
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v3.2rcX all desktops
Location: Brazil
Contact:

Re: depfinder

Post#7 by brokenman » 07 Sep 2013, 13:57

egrep is the same as grep -e

This is a switch to tell 'grep' that you will feed it a regex pattern. Normally you can only grep one thing. For example to find two types of word documents on a disk

find /mnt/sda2/User/john/Documents -type f | egrep ".doc|.docx"
| | | |
| | | |
Search The path of type 'file' regex pattern

grep --help
How do i become super user?
Wear your underpants on the outside and put on a cape.

Post Reply