|
|
| Dave Kelly 2006-09-28, 1:38 am |
| Is this the correct way to do this.
ls -R | grep lib > locate
I am inside a directory and have decompressed a file. I now want to find
the libraries in the file and check the whole computer system to be sure
I do not overwrite something.
TIA
Dave
| |
| Icarus Sparry 2006-09-28, 1:38 am |
| On Thu, 28 Sep 2006 00:54:41 +0000, Dave Kelly wrote:
> Is this the correct way to do this.
>
>
> ls -R | grep lib > locate
>
> I am inside a directory and have decompressed a file. I now want to find
> the libraries in the file and check the whole computer system to be sure
> I do not overwrite something.
>
> TIA
> Dave
That will work, but the output will not be very useful, in that it will
just tell you the name that contains 'lib', and not where it is.
I would use
find . -name 'lib*' -print
(a better translation of your script would be find . -name '*lib*' -print,
but I expect libraries to have names starting with lib).
| |
| Bruce Barnett 2006-09-28, 7:32 am |
| Dave Kelly <daveekelly@earthlink.net> writes:
> Is this the correct way to do this.
>
>
> ls -R | grep lib > locate
Look in /etc/ld.so.conf to find where your dynamic libraries are.
find `cat /etc/ld.so.conf` -name lib\*.so
Then use nm(1) to find the contents of each library if you are looking for a particular function.
--
Sending unsolicited commercial e-mail to this account incurs a fee of
$500 per message, and acknowledges the legality of this contract.
| |
| Dave Kelly 2006-09-28, 1:20 pm |
| Bruce Barnett wrote:
> Dave Kelly <daveekelly@earthlink.net> writes:
>
>
> Look in /etc/ld.so.conf to find where your dynamic libraries are.
> find `cat /etc/ld.so.conf` -name lib\*.so
>
> Then use nm(1) to find the contents of each library if you are looking for a particular function.
>
>
Basically, I am just checking to be sure I do not overwrite something
and break other applications.
| |
| Bruce Barnett 2006-09-29, 1:44 am |
| Dave Kelly <daveekelly@earthlink.net> writes:
> Basically, I am just checking to be sure I do not overwrite something
> and break other applications.
Do it as non-root. That way you can see the errors before you do it for real.
Also - make a backup of the files first - just in case.
:-)
--
Sending unsolicited commercial e-mail to this account incurs a fee of
$500 per message, and acknowledges the legality of this contract.
| |
| Spiros Bousbouras 2006-09-30, 7:28 pm |
| Dave Kelly wrote:
> Is this the correct way to do this.
>
>
> ls -R | grep lib > locate
>
> I am inside a directory and have decompressed a file. I now want to find
> the libraries in the file and check the whole computer system to be sure
> I do not overwrite something.
What do you mean "libraries in the file" ? What else
do you plan to do which runs the danger of overwriting
something ?
|
|
|
|