getlibs: Automatically solves dependencies for binaries

Share your own howto's etc. Not for support questions!

getlibs: Automatically solves dependencies for binaries

Postby Cappy » 2007-07-19 04:57

On 64-bit systems it downloads and installs libraries needed for 32-bit programs and 64-bit programs.
On 32-bit systems it downloads and installs libraries needed for 32-bit programs.

Newest version: 2.01 released on [January 3rd, 2008]

Thank you to the following contributors: marararam RavanH ViRMiN
Thank you to the following bug reporters: Cabal elanthis BogusJoe NullHead
Thank you to the following Beta Testers: Kilz BogusJoe NullHead

To install or upgrade:
http://www.boundlesssupremacy.com/Cappy/getlibs/getlibs-all.deb
Download and double click the file to install.

-----

View the source without installing the package:
http://www.boundlesssupremacy.com/Cappy/getlibs/getlibs

getlibs works on:
  • All Ubuntu and Debian systems
  • Debian or Ubuntu based distributions (best to use the package name)



Tip: To install a 32-bit debian package for a program (not a library!) use
Code: Select all
sudo dpkg -i --force-all package_name.deb


Usage Examples:

getlibs on a program to download all missing libraries:
Code: Select all
getlibs /usr/bin/skype

-----

Use getlibs to install a 32-bit library using the library name:
Code: Select all
getlibs -l libogg.so.0 libSDL-1.2.so.0

-----

Use getlibs to install a 32-bit library using the package name:
Code: Select all
getlibs -p libqt4-core libqt4-gui

-----

Install a 32-bit library file (.deb):
Code: Select all
getlibs -i ~/i386_library_1.deb

-----

Download and install a 32-bit library file (.deb):
Code: Select all
getlibs -w ubuntu.com/i386_library_1.deb

-----

Other options:

--mirror or -m : Use the specified mirror to download from if one is not specified by package

--verbose : Extra output

--ldconfig : Runs ldconfig on directories where new libraries are installed

-64 : Will let apt-get install 64-bit packages for a 64-bit system

-32 : Left only for compatibility with getlibs v1

--distro : can set as either Ubuntu or Debian. Ubuntu installs to /usr/lib32 and/or /lib32. Debian installs to /emul/ia32-linux/

--release : can set as hardy gutsy feisty edgy or dapper. Determines what web interface release is used in search.
Last edited by Cappy on 2008-01-09 06:27, edited 7 times in total.
Cappy
 
Posts: 4
Joined: 2007-07-19 04:40

Postby Dilkmoth » 2007-07-26 11:01

I must admit this looks wonderful. But why should we trust a package that isn't say in the debian repositories or whatever the equivelent for your distro? Nothing personal, but this is a general question about advisable protocol regarding wonderful sounding binaries on the net and maintaining a secure bug free, con free system. Presumably getlibs won't work unless executed by the root user. Now that sounds dubious to me unless screened by some trusted oober-coders, in my case the Debian developement team(s). What do other people think? If your package does what you claim as well as you claim then you should have no trouble getting Debian et al to distribute it right?
Dilkmoth
 
Posts: 16
Joined: 2007-07-24 16:46

Postby Cappy » 2007-07-27 04:18

It's just a sh script so it CAN'T do anything unless executed as super user. Like any other script, it can only do what the user who runs it can. It doesn't overwrite anything or make any changes without root.

As for debian distributing it, I'm not sure they would like it that a script automates packages.debian.com.
Cappy
 
Posts: 4
Joined: 2007-07-19 04:40

Postby Lavene » 2007-07-27 05:01

Dilkmoth wrote:I must admit this looks wonderful. But why should we trust a package that isn't say in the debian repositories or whatever the equivelent for your distro? Nothing personal, but this is a general question about advisable protocol regarding wonderful sounding binaries on the net and maintaining a secure bug free, con free system. Presumably getlibs won't work unless executed by the root user. Now that sounds dubious to me unless screened by some trusted oober-coders, in my case the Debian developement team(s). What do other people think? If your package does what you claim as well as you claim then you should have no trouble getting Debian et al to distribute it right?

Ultimately it's down to your self. If you are able you can review the code, or get someone you trust to do it, you can see if anyone else is using it etc. but in the end it comes down to: do you choose to trust the program/ programmer or not.

Personally I'm very careful if it's a prorietary binary from a source I don't know. Some stuff, like bash/ python scripts I'm usually able to tell if the code does what it claim to do but sometimes it's just your gut feeling that decides.

The best way to stay as secure as possible is of course to stick with official packages but sometimes no package exists for something you really want.

Tina
Lavene
Site admin
 
Posts: 5096
Joined: 2006-01-04 04:26
Location: Oslo, Norway

Postby Dilkmoth » 2007-07-27 09:47

Thanks for clarifying a few things. I had missed in the original posting that we were talking about a script. Well it sounds excellent, when I get a change I'll certainly be checking it out.

Thanks
DM
Dilkmoth
 
Posts: 16
Joined: 2007-07-24 16:46

Postby bouncingmolar » 2007-09-30 21:23

did I do something wrong?

Code: Select all
# getlibs /usr/bin/skype
No match found for package libQtCore.so.4
No match found for package libQtDBus.so.4
No match found for package libQtGui.so.4
No match found for package libQtNetwork.so.4
No match found for package libsigc-2.0.so.0
No libraries to download.


also
Code: Select all
getlibs -32 libQtCore.so.4
No match found for package libQtCore.so.4
No libraries to download.
bouncingmolar
 
Posts: 30
Joined: 2007-09-23 12:37

AMD-64 and Skype

Postby Jorma » 2007-09-30 22:08

I have AMD-64 and Kuduntu Feisty. I've made months of work to find tips how to get Skype working. Today I found your tips and in one hour I got Skype running. Very much thanks to you and I am very happy. Best regards Jorma Huuskonen Finland. :D :D :D
Jorma
 
Posts: 1
Joined: 2007-09-30 21:57
Location: Finland

Postby Cappy » 2008-01-09 06:28

Getlibs works on debian again.
Cappy
 
Posts: 4
Joined: 2007-07-19 04:40

Postby mikefreeman » 2008-08-26 19:01

When I run getlibs in Debian Lenny AMD64, I get the following:

Code: Select all
mikeniki@Laptop:~$ getlibs -l svg_loader.so
svg_loader.so: librsvg2-common
The following i386 packages will be installed:
librsvg2-common
Continue [Y/n]?
Downloading ...
Installing libraries ...
sudo: unable to resolve host Laptop


Any ideas? I've tried from my user account and from root with the exact same output. It's just not getting through this sudo resolve problem.

Thanks!
mikefreeman
 
Posts: 53
Joined: 2008-02-23 16:43

Postby Cappy » 2008-08-29 04:40

Log into root and use
Code: Select all
sed -i 's/sudo//g' /usr/bin/getlibs


I think that is the correct syntax but I'm in a rush. In any case, simply remove the "sudo" off of the beginning of the lines, near the bottom of the script, if sudo isn't set up correctly.
Cappy
 
Posts: 4
Joined: 2007-07-19 04:40


Return to Docs, Howtos, Tips & Tricks

Who is online

Users browsing this forum: No registered users and 2 guests

fashionable