Packagesite for pkgng

Installing and maintaining the FreeBSD Ports Collection or FreeBSD Packages (i.e. third party software).

Packagesite for pkgng

Postby Majorix » 12 Oct 2012, 17:18

I have upgraded my VM to [FILE]10-CURRENT[/FILE], and now I am using [FILE]pkg[/FILE] for package management.

However, when I ran it for the first time, it spit out this:
[CMD="#"]pkg install emacs[/CMD]
Code: Select all
Updating repository catalogue
pkg: PACKAGESITE is not defined.


I have looked a bit and so far there is no official [FILE]10-CURRENT[/FILE] [FILE]packagesite[/FILE]. What do you guys use for [FILE]packagesite[/FILE], and is there any "official" ones out there?
User avatar
Majorix
Member
 
Posts: 149
Joined: 24 Dec 2011, 15:53
Location: Turkey

Postby bkouhi » 12 Oct 2012, 17:45

Hi, try this:

[CMD="#"]cp /usr/local/etc/pkg.conf.sample /usr/local/etc/pkg.conf[/CMD]
[CMD="#"]pkg update[/CMD]

Or check http://pkgbeta.FreeBSD.org and set [FILE]PACKAGESITE[/FILE] variable in [FILE]/usr/local/etc/pkg.conf[/FILE]. For example:

Code: Select all
PACKAGESITE: http://pkgbeta.freebsd.org/freebsd-9-i386/latest/
bkouhi
Member
 
Posts: 202
Joined: 14 Sep 2011, 09:01

Postby Majorix » 12 Oct 2012, 18:02

Thanks, it is now installing [FILE]emacs[/FILE] in the background :)

You don't have to really edit the configuration file though, it is fine as it is.

I am so far VERY impressed with [FILE]pkg[/FILE].
User avatar
Majorix
Member
 
Posts: 149
Joined: 24 Dec 2011, 15:53
Location: Turkey

Postby Majorix » 15 Oct 2012, 16:03

Sorry for the double post.

My [FILE]PACKAGESITE[/FILE] as set by the configuration file does not work.

It reads: http://pkg.freebsd.org/freebsd:10:x86:32/latest/repo.txz and it cannot connect there. When I replace "[FILE]pkg[/FILE]" with "[FILE]pkgbeta[/FILE]" it works. However I looked at the repos on [FILE]pkgbeta[/FILE] and they seem outdated.

What can I do?

EDIT: It works now and I didn't change anything. Interesting...

EDIT 2: It doesn't work now again.... :/
User avatar
Majorix
Member
 
Posts: 149
Joined: 24 Dec 2011, 15:53
Location: Turkey

Postby SNK » 15 Oct 2012, 23:00

The packages for [file]i386[/file] are a month old. You are not using [file]amd64[/file]?

During September the online repo did not get updated so I started to compile packages myself in a jail with [port]ports-mgmt/poudriere[/port].

Currently it is still [file]pkgbeta[/file] instead of [file]pkg[/file].
SNK
Member
 
Posts: 130
Joined: 15 May 2011, 18:34
Location: The Netherlands

Postby Majorix » 16 Oct 2012, 12:15

No, I am not using [FILE]amd64[/FILE]. This is an old netbook that does not even support [FILE]64-bit[/FILE] :(
User avatar
Majorix
Member
 
Posts: 149
Joined: 24 Dec 2011, 15:53
Location: Turkey

Postby Majorix » 17 Oct 2012, 06:30

Anyone? I am stuck with these old packages. Will there be new packages for x86?
User avatar
Majorix
Member
 
Posts: 149
Joined: 24 Dec 2011, 15:53
Location: Turkey

Postby SirDice » 17 Oct 2012, 09:31

You can always set up your own repository. I actually recommend doing that.
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
User avatar
SirDice
Old Fart
 
Posts: 16185
Joined: 17 Nov 2008, 16:50
Location: Rotterdam, Netherlands


Return to Installation and Maintenance of FreeBSD Ports or Packages

Who is online

Users browsing this forum: No registered users and 2 guests