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
depfinder
- francois
- Contributor
- Posts: 6443
- Joined: 28 Dec 2010, 14:25
- Distribution: xfce plank porteus nemesis
- Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.
Re: depfinder
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/
http://depfinder.sourceforge.net/
depfinder would have been developped by pagan, one of the administrator of salix os. See the link, citation:
http://sourceforge.net/projects/depfinder/
Other info on 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
http://depfinder.sourceforge.net/
Last edited by francois on 06 Sep 2013, 21:52, edited 1 time in total.
Prendre son temps, profiter de celui qui passe.
-
- Contributor
- Posts: 1857
- Joined: 09 Aug 2013, 14:25
- Distribution: Porteus and Nemesis
- Location: USA
Re: depfinder
How hard would it be to write a script to go with depfinder to find all the dependencies in a directory?
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.
- brokenman
- Site Admin
- Posts: 6105
- Joined: 27 Dec 2010, 03:50
- Distribution: Porteus v4 all desktops
- Location: Brazil
Re: depfinder
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.
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.
Wear your underpants on the outside and put on a cape.
-
- Contributor
- Posts: 1857
- Joined: 09 Aug 2013, 14:25
- Distribution: Porteus and Nemesis
- Location: USA
Re: depfinder
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.
- francois
- Contributor
- Posts: 6443
- Joined: 28 Dec 2010, 14:25
- Distribution: xfce plank porteus nemesis
- Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.
Re: depfinder
Please jack, let's put in a little autonomy:
google egrep:
http://www.cs.columbia.edu/~tal/3261/fa ... torial.htm
google egrep:
http://www.cs.columbia.edu/~tal/3261/fa ... torial.htm
Prendre son temps, profiter de celui qui passe.
- brokenman
- Site Admin
- Posts: 6105
- Joined: 27 Dec 2010, 03:50
- Distribution: Porteus v4 all desktops
- Location: Brazil
Re: depfinder
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
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.
Wear your underpants on the outside and put on a cape.