Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Installing binary package
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
cebolins
n00b
n00b


Joined: 16 Jan 2008
Posts: 22

PostPosted: Fri Mar 21, 2008 12:30 am    Post subject: Installing binary package Reply with quote

I was trying to setup my Gentoo to use binary packages... I chose a grp mirror: ututo.org.ar/i686.
So, I added these two line is my /etc/make.conf:
PORTAGE_BINHOST="http://ututo.org.ar/i686"
PKGDIR=/usr/portage/packages

ok... now, let's say that I want to install this package: openoffice-2.3.1.tbz2
I try everything, but nothing works...

emerge -gK openoffice
Calculating dependencies |
Fetching bininfo from http://ututo.org.ar/i686
cache miss: '0' --- cache hit: '0'
emerge: there are no ebuilds to satisfy "openoffice"

emerge -gK openoffice-2.3.1
Calculating dependencies \
Fetching bininfo from http://ututo.org.ar/i686
cache miss: '0' --- cache hit: '0'
!!! 'openoffice-2.3.1' is not a valid package atom.
!!! Please check ebuild(5) for full details.
!!! (Did you specify a version but forget to prefix with '='?)

emerge -gK app-office/openoffice
Calculating dependencies |
Fetching bininfo from http://ututo.org.ar/i686
cache miss: '0' --- cache hit: '0'
emerge: there are no ebuilds to satisfy "app-office/openoffice"

nothing works! what am I doing wrong?
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Fri Mar 21, 2008 1:38 am    Post subject: Reply with quote

For a specific version, you need this : emerge -gK =openoffice-2.3.1
Back to top
View user's profile Send private message
mjf55
Guru
Guru


Joined: 25 Aug 2007
Posts: 372

PostPosted: Fri Mar 21, 2008 1:43 am    Post subject: Reply with quote

For openoffice specifically, I would try emerge -av openoffice-bin. This should emerge without problems.

When you did 'emerge -gK openoffice-2.3.1' I think you should have entered 'emerge -gK =app-office/openoffice-2.3.1'. The valid atom is '=app-office/openoffice-2.3.1'

I do not use binary packages so I am not sure of it syntax, or how portage works for binary only.

Hope I help a little.
_________________
Mark
No longer a n00b, but still a 'Kool Kid' wannabe
Back to top
View user's profile Send private message
cebolins
n00b
n00b


Joined: 16 Jan 2008
Posts: 22

PostPosted: Fri Mar 21, 2008 1:46 am    Post subject: Reply with quote

i had used with the = syntax earlier...

emerge -gK =openoffice-2.3.1
Calculating dependencies /
Fetching bininfo from http://ututo.org.ar/i686
cache miss: '0' --- cache hit: '0'
emerge: there are no ebuilds to satisfy "=openoffice-2.3.1"

emerge -gK =app-office/openoffice-2.3.1
Calculating dependencies /
Fetching bininfo from http://ututo.org.ar/i686
cache miss: '0' --- cache hit: '0'
emerge: there are no ebuilds to satisfy "=app-office/openoffice-2.3.1

i got so happy... :(


Last edited by cebolins on Fri Mar 21, 2008 1:49 am; edited 1 time in total
Back to top
View user's profile Send private message
guruvan
Tux's lil' helper
Tux's lil' helper


Joined: 21 Aug 2007
Posts: 132

PostPosted: Fri Mar 21, 2008 1:47 am    Post subject: Reply with quote

This should help.....I've wondered about this, and took the opportunity to try it out.....here's what happened (I grabbed a different package than open office, as that is already in my packages dir- I compile my own on dev box, and install bins on production machines.

I had the same luck as you did trying this. Upon looking at the Proyecto UTUTO, I was not convinced that that is a GENTOO binhost. It doesn't appear to have a) the same packages/version as are current on my portage trees nor b) any gentoo data at all. I did see it listed on the http://gentoo-wiki.com/TIP_Using_PORTAGE_BINHOST but it did not seem to follow what the TIP said, so I think that it may be broken?


I tried the one listed above it. http://tinderbox.dev.gentoo.org/default-linux/x86/All/ This one worked BUT only with the -k option NOT the -K option. I believe that the -K means that the package must exist in the PKGDIR - deps are not checked from PORTDIR. I tried several different packages on UTUTO, with no luck.

This finally worked:

Code:
sally ~ # PORTAGE_BINHOST="http://tinderbox.dev.gentoo.org/default-linux/x86/All/"  PKGDIR=/usr/portage/packages/All emerge -pgk --fetchonly shorewall

These are the packages that would be fetched, in order:

Calculating dependencies -
Fetching bininfo from http://tinderbox.dev.gentoo.org/default-linux/x86/All/
Loaded metadata pickle.
cache miss: '0' --- cache hit: '564'
... done!

http://gentoo.mirrors.tds.net/gentoo/distfiles/iptables-1.4.0.tar.bz2 http://gentoo.chem.wisc.edu/gentoo/distfiles/iptables-1.4.0.tar.bz2 http://gentoo.mirrors.tera-byte.com/distfiles/iptables-1.4.0.tar.bz2 http://iptables.org/projects/iptables/files/iptables-1.4.0.tar.bz2
Fetching 'sys-apps/iproute2-2.6.22.20070710'
--19:41:01--  http://tinderbox.dev.gentoo.org/default-linux/x86/All/iproute2-2.6.22.20070710.tbz2
           => `/usr/portage/packages/All/All//iproute2-2.6.22.20070710.tbz2'
Resolving tinderbox.dev.gentoo.org... 140.211.166.181
Connecting to tinderbox.dev.gentoo.org|140.211.166.181|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 423,877 (414K) [text/plain]

100%[=================================================================================================================>] 423,877      518.72K/s

19:41:02 (517.19 KB/s) - `/usr/portage/packages/All/All//iproute2-2.6.22.20070710.tbz2' saved [423877/423877]


http://gentoo.mirrors.tds.net/gentoo/distfiles/shorewall-shell-4.0.3.tar.bz2 http://gentoo.chem.wisc.edu/gentoo/distfiles/shorewall-shell-4.0.3.tar.bz2 http://gentoo.mirrors.tera-byte.com/distfiles/shorewall-shell-4.0.3.tar.bz2 http://www1.shorewall.net/pub/shorewall/4.0/shorewall-4.0.3/shorewall-shell-4.0.3.tar.bz2

http://gentoo.mirrors.tds.net/gentoo/distfiles/shorewall-common-4.0.3.tar.bz2 http://gentoo.chem.wisc.edu/gentoo/distfiles/shorewall-common-4.0.3.tar.bz2 http://gentoo.mirrors.tera-byte.com/distfiles/shorewall-common-4.0.3.tar.bz2 http://www1.shorewall.net/pub/shorewall/4.0/shorewall-4.0.3/shorewall-common-4.0.3.tar.bz2



You'll notice that I didn't get the package I wanted, or all the deps. I did another one of something in THEIR list and not on my packages dir:

Code:
sally app-backup # PORTAGE_BINHOST="http://tinderbox.dev.gentoo.org/default-linux/x86/All/"  PKGDIR=/usr/portage/packages/All emerge -pgk =procmail-3.22-r7

These are the packages that would be merged, in order:

Calculating dependencies \
Fetching bininfo from http://tinderbox.dev.gentoo.org/default-linux/x86/All/
Loaded metadata pickle.
cache miss: '0' --- cache hit: '564'
... done!
[binary  N    ] mail-filter/procmail-3.22-r7  USE="-mbox (-selinux)"


For giggles, I went ahead and took out the -p to make SURE it would install. It is installed on my box.

The BINHOST that worked had only a very basic set of applications for download. (very little that I have not emerged already) and it took me a bit to find stuff as I am on a complete set of ~x86 (unstable branch, whcih is more stable than the stable branch I Think)

good luck
_________________
Everything is broken......(b.dylan). 8)

guruvan
Back to top
View user's profile Send private message
cebolins
n00b
n00b


Joined: 16 Jan 2008
Posts: 22

PostPosted: Fri Mar 21, 2008 2:14 am    Post subject: Reply with quote

seriously? but ututo is being updated everytime... and it has the same versions of those in /usr/portage... but the tinderbox is very out of date and has almost no packages...

i still think there's gotta be something to do... why would it be so complete and updated, and WITH the same version as portage?
Back to top
View user's profile Send private message
guruvan
Tux's lil' helper
Tux's lil' helper


Joined: 21 Aug 2007
Posts: 132

PostPosted: Fri Mar 21, 2008 2:20 am    Post subject: Reply with quote

no clues, but I tried a boatload of different packages, and specific versions of the packages, and could NOT get UTUTO to do anything other than what the original questioner said. again, the packages listed on the web page at UTUTO were not AT ALL the same as the ebuilds I have in my PORTDIR. It was very hard to find a version of a package that matched ebuild that I have (on very recent sync, and a sync from 3 months ago) Maybe the URL for UTUTO is wrong? It had packages at that URL, but for what?

tinderbox worked right off the bat.

UTUTO did not give me this:
Code:

Loaded metadata pickle.
cache miss: '0' --- cache hit: '564'


It never incremented either cache numbers. When I connected to tinderbox, it immediately spun the cache miss number to 564 (I guess the number of packages that are there) and subsequent connections to tinderbox showed the above quoted cache hit number.
_________________
Everything is broken......(b.dylan). 8)

guruvan
Back to top
View user's profile Send private message
cebolins
n00b
n00b


Joined: 16 Jan 2008
Posts: 22

PostPosted: Fri Mar 21, 2008 2:33 am    Post subject: Reply with quote

yes, maybe the url is wrong...

but even so... the package versions are the same as the one in my portage dir...
Back to top
View user's profile Send private message
guruvan
Tux's lil' helper
Tux's lil' helper


Joined: 21 Aug 2007
Posts: 132

PostPosted: Fri Mar 21, 2008 4:00 am    Post subject: Reply with quote

nonetheless it did not (seem to) have any cache info, and therefore portage couldn't use it. could be just transient errors on UTUTO's side. And I sure didn't see anything on their home page that said anything about gentoo or portage (coulda missed it - I did just skim it, but I do read spanish)

(oersonally I think it's kinda moot......gentoo is a source distro, and why use it if you just want binaries? I use binaries on my machines, but only ones I compiled myself.....the reason I compile everything is to know for sure what options are compiled into the packages....I don't really know that with random binaries....) That said, sometimes the huge ones might be better downloaded in binary - seamonkey, firefox, openoffice come to mind. openoffice does take a long time, and at least 5GB of disk to compile. I think all there I mentioned have emergeable binaries (openoffice-bin, as pointed out)
_________________
Everything is broken......(b.dylan). 8)

guruvan
Back to top
View user's profile Send private message
coolsnowmen
Veteran
Veteran


Joined: 30 Jun 2004
Posts: 1479
Location: No.VA

PostPosted: Fri Mar 21, 2008 5:14 am    Post subject: Reply with quote

it can work, for test
FEATURES="getbinpkg" PORTAGE_BINHOST="ftp://ututo.org.ar/i686" emerge -gKp 'Clone'
but with 10000 packages, and a protocal ment for a LAN being used across the world (Argentina) my first caching will probably take a day
_________________
emerge: there are no ebuilds to satisfy "moo"
Back to top
View user's profile Send private message
guruvan
Tux's lil' helper
Tux's lil' helper


Joined: 21 Aug 2007
Posts: 132

PostPosted: Fri Mar 21, 2008 6:10 am    Post subject: Reply with quote

when I did it it didn't even try to cache stuff. It just told me Misses 0 Hist 0 right away and exited
_________________
Everything is broken......(b.dylan). 8)

guruvan
Back to top
View user's profile Send private message
coolsnowmen
Veteran
Veteran


Joined: 30 Jun 2004
Posts: 1479
Location: No.VA

PostPosted: Fri Mar 21, 2008 6:19 am    Post subject: Reply with quote

you copied my exact line and it didn't try anything?
_________________
emerge: there are no ebuilds to satisfy "moo"
Back to top
View user's profile Send private message
guruvan
Tux's lil' helper
Tux's lil' helper


Joined: 21 Aug 2007
Posts: 132

PostPosted: Fri Mar 21, 2008 6:34 am    Post subject: Reply with quote

no - I was using the URL posted earlier which was an HTTP not FTP (didn't notice that in your last post)

I just tried with the exact line you posted - and is working. its running through the cache right now.

http://ututo.org.ar/i686 did not work
Code:
emerge: There are no ebuilds to satisfy "Clone"



ftp://ututo.org.ar/i686 DOES WORK

Thanks for clearing that up......Maybe someone should update the TIP page?
_________________
Everything is broken......(b.dylan). 8)

guruvan
Back to top
View user's profile Send private message
cebolins
n00b
n00b


Joined: 16 Jan 2008
Posts: 22

PostPosted: Fri Mar 21, 2008 1:07 pm    Post subject: Reply with quote

finally! in the make.conf.example files, all examples about grps are in ftp... but the page in the wiki should be really fixed... otherwise, everyone will go through the same problem...

thank you guys!! and, I live in Brazil, so, it's VERY close to me...
Back to top
View user's profile Send private message
humbletech99
Veteran
Veteran


Joined: 26 May 2005
Posts: 1229
Location: London

PostPosted: Wed Jun 04, 2008 10:17 am    Post subject: Reply with quote

This doesn't work for me:
Code:
# FEATURES="getbinpkg" PORTAGE_BINHOST="ftp://e.ututo.org.ar/i686" emerge -av anypackage

These are the packages that would be merged, in order:

Calculating dependencies \
Fetching bininfo from ftp://e.ututo.org.ar/i686
Traceback (most recent call last):
  File "/usr/bin/emerge", line 6971, in ?
    retval = emerge_main()
  File "/usr/bin/emerge", line 6965, in emerge_main
    myopts, myaction, myfiles, spinner)
  File "/usr/bin/emerge", line 6230, in action_build
    mydepgraph = depgraph(settings, trees, myopts, myparams, spinner)
  File "/usr/bin/emerge", line 1460, in __init__
    "--getbinpkgonly" in self.myopts)
  File "/usr/lib/portage/pym/portage.py", line 7826, in populate
    self.remotepkgs = getbinpkg.dir_get_metadata(
  File "/usr/lib/portage/pym/getbinpkg.py", line 465, in dir_get_metadata
    conn,protocol,address,params,headers = create_conn(baseurl, conn)
  File "/usr/lib/portage/pym/getbinpkg.py", line 136, in create_conn
    conn = ftplib.FTP(host)
  File "/usr/lib/python2.4/ftplib.py", line 107, in __init__
    self.connect(host)
  File "/usr/lib/python2.4/ftplib.py", line 129, in connect
    raise socket.error, msg
socket.error: (111, 'Connection refused')

Code:
# FEATURES="getbinpkg" PORTAGE_BINHOST="ftp://ututo.org.ar/i686" emerge -av anypackage

These are the packages that would be merged, in order:

Calculating dependencies \
Fetching bininfo from ftp://ututo.org.ar/i686
Traceback (most recent call last):
  File "/usr/bin/emerge", line 6971, in ?
    retval = emerge_main()
  File "/usr/bin/emerge", line 6965, in emerge_main
    myopts, myaction, myfiles, spinner)
  File "/usr/bin/emerge", line 6230, in action_build
    mydepgraph = depgraph(settings, trees, myopts, myparams, spinner)
  File "/usr/bin/emerge", line 1460, in __init__
    "--getbinpkgonly" in self.myopts)
  File "/usr/lib/portage/pym/portage.py", line 7826, in populate
    self.remotepkgs = getbinpkg.dir_get_metadata(
  File "/usr/lib/portage/pym/getbinpkg.py", line 465, in dir_get_metadata
    conn,protocol,address,params,headers = create_conn(baseurl, conn)
  File "/usr/lib/portage/pym/getbinpkg.py", line 136, in create_conn
    conn = ftplib.FTP(host)
  File "/usr/lib/python2.4/ftplib.py", line 107, in __init__
    self.connect(host)
  File "/usr/lib/python2.4/ftplib.py", line 129, in connect
    raise socket.error, msg
socket.error: (97, 'Address family not supported by protocol')

Code:
# FEATURES="getbinpkg" PORTAGE_BINHOST="ftp://ututo.org.ar/i686/" emerge -av anypackage

These are the packages that would be merged, in order:

Calculating dependencies |
Fetching bininfo from ftp://ututo.org.ar/i686/
Traceback (most recent call last):
  File "/usr/bin/emerge", line 6971, in ?
    retval = emerge_main()
  File "/usr/bin/emerge", line 6965, in emerge_main
    myopts, myaction, myfiles, spinner)
  File "/usr/bin/emerge", line 6230, in action_build
    mydepgraph = depgraph(settings, trees, myopts, myparams, spinner)
  File "/usr/bin/emerge", line 1460, in __init__
    "--getbinpkgonly" in self.myopts)
  File "/usr/lib/portage/pym/portage.py", line 7826, in populate
    self.remotepkgs = getbinpkg.dir_get_metadata(
  File "/usr/lib/portage/pym/getbinpkg.py", line 465, in dir_get_metadata
    conn,protocol,address,params,headers = create_conn(baseurl, conn)
  File "/usr/lib/portage/pym/getbinpkg.py", line 136, in create_conn
    conn = ftplib.FTP(host)
  File "/usr/lib/python2.4/ftplib.py", line 107, in __init__
    self.connect(host)
  File "/usr/lib/python2.4/ftplib.py", line 129, in connect
    raise socket.error, msg
socket.error: (97, 'Address family not supported by protocol')


I've been looking at the wiki page http://gentoo-wiki.com/TIP_Using_PORTAGE_BINHOST as well but it doesn't work for me.

I really really want to switch to a bin repo to avoid all future compile times as I'm getting too old to be waiting around for this any more, even distCC isn't enough really, I just can't get this bin repo to work.

Also, I think it's a huge mistake to have 3rd party bin repos though from a security+control perspective, and I really wish the gentoo devs would realize this, Gentoo is not all about compiling, it has many other good features and style, even as a bin distro it would be better than debian, otherwise I'd just switch to debian for everything right now.

If anyone knows how to get this thing working again or if this is just a temporary problem with the site, I'd like to know.
_________________
The Human Equation:

value(geeks) > value(mundanes)
Back to top
View user's profile Send private message
coolsnowmen
Veteran
Veteran


Joined: 30 Jun 2004
Posts: 1479
Location: No.VA

PostPosted: Wed Jun 04, 2008 6:09 pm    Post subject: Reply with quote

neither ftp://ututo.org.ar/i686 nor http://... exist for me.

humbletech99 wrote:
Gentoo is not all about compiling...

I think it's a huge mistake to have 3rd party bin repos though from a security+control perspective, and I really wish the gentoo devs would realize this


I stumbled a bit when someone who has been around for so long says gentoo != compiling. You provide evidence to the contrary in your next thought!

It is also your choice to use that bin host. It is further evidence that gentoo is not about binary packages, that there are not a plethora of gentoo approved bin mirrors with hashed or signed packages.

Do you have any reason to believe that less than 99% of gentoo development is focused on source based disto development? The proportional lack of gentoo documentation on the subject points away from bin distro.

From my looking earlier, it looks like binary hosts were meant for personal distribution, based on the effort put into caching for binary vs. source.

Less argumentatively,
What reason do you have to stay with gentoo over debian/ubuntu/most others... if you are not compiling from source? That seems like you would be using 'gentoo', but without portage?!
_________________
emerge: there are no ebuilds to satisfy "moo"
Back to top
View user's profile Send private message
humbletech99
Veteran
Veteran


Joined: 26 May 2005
Posts: 1229
Location: London

PostPosted: Thu Jun 05, 2008 8:32 am    Post subject: Reply with quote

It's precisely because I have been around and I have most of my linux servers on Gentoo which I have been managing and patching for 3 years that I realize there must be a better way.

Ubuntu is for dweebs who haven't got a unix clue, Debian is good and I use that too, but I prefer the Gentoo for the following NOT COMPILING reasons:

- very minimalist
- no auto-starting services
- nice runlevels
- good and clear documentation
- more security orientated with Hardened Gentoo
- faster GLSA updates
- deeper understanding of the distro because less is hidden from you and assembling the system from the components makes you much better in linux

and that's just what I can think right now off the top of my head...

So like I said, I think people who see Gentoo as just about compiling are missing the important points, why don't you just run Linux from Scratch everywhere then? Because it's not as easy to maintain and maintenance is most of what you do in the field, hence why compiling packages every other day to keep all my servers patched makes me wonder if there is a better way...

It's kind of like buying a telephone so you can only talk to one person about telephones, it seems to become the point instead of being the tool to do other things.

It would benefit Gentoo greatly to have the option to use it as a source-compiled distro for the extra few % speed increase at the cost of huge compile waiting times and frequent breakages on mass upgrades of more than a couple of dozen packages, or having the binary version which cuts down the usage time and the previously mentioned compile errors.

If Gentoo could simply add this option, if could start stealing more market share for sure because the last reason not to use Gentoo, the compile times, would be gone, but you'd still have all the other advantages mentioned above.
_________________
The Human Equation:

value(geeks) > value(mundanes)
Back to top
View user's profile Send private message
desultory
Bodhisattva
Bodhisattva


Joined: 04 Nov 2005
Posts: 9410

PostPosted: Thu Jun 05, 2008 8:38 am    Post subject: Reply with quote

Have you considered running your own package host? Scheduling rebuilds of the package set would not be particularly difficult and would not need to be done while anyone was waiting.
Back to top
View user's profile Send private message
humbletech99
Veteran
Veteran


Joined: 26 May 2005
Posts: 1229
Location: London

PostPosted: Thu Jun 05, 2008 8:47 am    Post subject: Reply with quote

I hadn't considered it actually, mainly for the following reason I think:

I believe in standardization for work stuff, "The One True Thing" is really always the thing I look for, the one standard and re-usable way of doing something that everybody uses and focuses effort on to make better. Custom solutions are rarely ever as good as open standard solutions in my opinion since they cannot receive as much testing, effort and improvement as "The One True Thing".

If I run my own bin host, then not only do I have to do all this work myself, someone on the other side of the world wanting the same thing also has to do all this same work which is a waste of effort, and neither of our repos would be anywhere near as good or comprehensive as an official one would be with more than 1 contributor.

One official bin repo would solve this as well as attract all those nay-sayers about Gentoo not being worth it because of the compiling, which is a shame because they never see all the other great things about Gentoo...
_________________
The Human Equation:

value(geeks) > value(mundanes)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum