Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

using new pkgng system on 9.0 system

2 views
Skip to first unread message

Fbsd8

unread,
Nov 22, 2012, 9:51:33 AM11/22/12
to
Since pkg is being replaced by pkgng in Release 10.0 I would like to get
head start by playing with it on my 9.0 system.

Where can I find a write up about installing and using pkgng?

Have all the pkg packages been converted to pkgng format and are they
being kept up to date?
_______________________________________________
freebsd-...@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questi...@freebsd.org"

Bas Smeelen

unread,
Nov 22, 2012, 9:53:25 AM11/22/12
to
On 11/22/2012 03:51 PM, Fbsd8 wrote:
> Since pkg is being replaced by pkgng in Release 10.0 I would like to get
> head start by playing with it on my 9.0 system.
>
> Where can I find a write up about installing and using pkgng?
>
> Have all the pkg packages been converted to pkgng format and are they
> being kept up to date?

Hi

It's in /usr/ports/UPDATING

20121015:
AFFECTS: users of ports-mgmt/portmaster
AUTHOR: bdre...@FreeBSD.org

Portmaster now supports pkgng. To use pkgng, enable the patch in the port,
enable pkgng in your make.conf, and convert your existing /var/db/pkg
database. Also see UPDATING entry 20121010 if you are on a recent CURRENT
and do not want to use pkg.

This is optional and not currently required.

# make -C /usr/ports/ports-mgmt/pkg install clean
# make -C /usr/ports/ports-mgmt/portmaster config build deinstall install
clean
# echo 'WITH_PKGNG=yes' >> /etc/make.conf
# pkg2ng



This e-mail message, including any attachment(s), is intended solely for the addressee or addressees. Any views or opinions presented herein are solely those of the author and do not necessarily represent those of OSE.

If you are not the intended recipient of this communication please return this e-mail message and the attachment(s) to the sender and delete and destroy all copies.

Fbsd8

unread,
Nov 22, 2012, 10:14:24 AM11/22/12
to
Bas Smeelen wrote:
> On 11/22/2012 03:51 PM, Fbsd8 wrote:
>> Since pkg is being replaced by pkgng in Release 10.0 I would like to get
>> head start by playing with it on my 9.0 system.
>>
>> Where can I find a write up about installing and using pkgng?
>>
>> Have all the pkg packages been converted to pkgng format and are they
>> being kept up to date?
>
> Hi
>
> It's in /usr/ports/UPDATING
>
> 20121015:
> AFFECTS: users of ports-mgmt/portmaster
> AUTHOR: bdre...@FreeBSD.org
>
> Portmaster now supports pkgng. To use pkgng, enable the patch in the port,
> enable pkgng in your make.conf, and convert your existing /var/db/pkg
> database. Also see UPDATING entry 20121010 if you are on a recent CURRENT
> and do not want to use pkg.
>
> This is optional and not currently required.
>
> # make -C /usr/ports/ports-mgmt/pkg install clean
> # make -C /usr/ports/ports-mgmt/portmaster config build deinstall install
> clean
> # echo 'WITH_PKGNG=yes' >> /etc/make.conf
> # pkg2ng
>
>
>

Thanks, but your reply does not answer my question. I did not say
anything about using portmaster.

I want to use pkgng in native mode.
I don't see pkgng in the ports system.
How do I get pkgng loaded to a 9.0 system?

Bas Smeelen

unread,
Nov 22, 2012, 10:17:37 AM11/22/12
to
On 11/22/2012 04:14 PM, Fbsd8 wrote:
> Bas Smeelen wrote:
>> On 11/22/2012 03:51 PM, Fbsd8 wrote:
>>> Since pkg is being replaced by pkgng in Release 10.0 I would like to get
>>> head start by playing with it on my 9.0 system.
>>>
>>> Where can I find a write up about installing and using pkgng?
>>>
>>> Have all the pkg packages been converted to pkgng format and are they
>>> being kept up to date?
>>
>> Hi
>>
>> It's in /usr/ports/UPDATING
>>
>> 20121015:
>> AFFECTS: users of ports-mgmt/portmaster
>> AUTHOR: bdre...@FreeBSD.org
>>
>> Portmaster now supports pkgng. To use pkgng, enable the patch in the
>> port,
>> enable pkgng in your make.conf, and convert your existing /var/db/pkg
>> database. Also see UPDATING entry 20121010 if you are on a recent CURRENT
>> and do not want to use pkg.
>>
>> This is optional and not currently required.
>>
>> # make -C /usr/ports/ports-mgmt/pkg install clean
>> # make -C /usr/ports/ports-mgmt/portmaster config build deinstall
>> install clean
>> # echo 'WITH_PKGNG=yes' >> /etc/make.conf and
>> # pkg2ng
>>
>>
>>
>
> Thanks, but your reply does not answer my question. I did not say anything
> about using portmaster.
>
> I want to use pkgng in native mode.
> I don't see pkgng in the ports system.
> How do I get pkgng loaded to a 9.0 system?

That would be make -C /usr/ports/ports-mgmt/pkg install clean
and WITH_PKGNG=yes in /etc/make.conf
and convert the old pkgdb to ng with pkg2ng


Sorry I awlays use ports so maybe there is a config thing to be done also to
find the right sites to get the packages from




This e-mail message, including any attachment(s), is intended solely for the addressee or addressees. Any views or opinions presented herein are solely those of the author and do not necessarily represent those of OSE.

If you are not the intended recipient of this communication please return this e-mail message and the attachment(s) to the sender and delete and destroy all copies.

Fbsd8

unread,
Nov 22, 2012, 10:42:03 AM11/22/12
to
I see the problem. It's called pkgng but in the ports system it's called
pkg. Thought pkg was the old system. Silly me.

Bas Smeelen

unread,
Nov 22, 2012, 11:05:43 AM11/22/12
to
Not a problem.
The line in /etc/make.conf is used for when the ports or ports tools are
used, so the right package tools are invoked to register them in the
package database.
It is good to put this in to prevent a mess eventually when ports are
being used.
I switched most systems to the ng pkg tools, what I like very much about
it is that things are getting logged in messages. Also now you have one
pkg command with different operations for what you want to accomplish.




This e-mail message, including any attachment(s), is intended solely for the addressee or addressees. Any views or opinions presented herein are solely those of the author and do not necessarily represent those of OSE.

If you are not the intended recipient of this communication please return this e-mail message and the attachment(s) to the sender and delete and destroy all copies.

Matthew Seaman

unread,
Nov 22, 2012, 2:03:50 PM11/22/12
to
On 22/11/2012 14:51, Fbsd8 wrote:
> Since pkg is being replaced by pkgng in Release 10.0 I would like to get
> head start by playing with it on my 9.0 system.

Cool.

> Where can I find a write up about installing and using pkgng?

If you start from http://wiki.freebsd.org/pkgng (which has quite a bit
of information in its own right) there are links to a number of articles
where people describe their experiences with pkgng.

> Have all the pkg packages been converted to pkgng format and are they
> being kept up to date?

Ah. Now, there you have zeroed in on the biggest stumbling point at the
moment. There are binary packages available, but only from the
beta-test server, and they aren't necessarily updated promptly, nor is
there a guarantee that every package you want might will be available.
Almost all ports will work just fine with pkgng -- the few exceptions
really are in need of fixing in any case; it's just that pkg_tools lets
you get away with things that pkgng doesn't.

Most people testing pkgng at the moment are building their own package
sets -- poudriere is a popular choice for doing that -- and setting up
their own private repositories.

There should have been official FreeBSD pkgng repos available 'Real Soon
Now' -- recent events have put the schedule back significantly, and
everyone is primarily concerned with doing it right rather than doing it
quickly. So, please wait patiently for an announcement. It will
happen, even if it does seem an interminable wait.

Cheers,

Matthew

--
Dr Matthew J Seaman MA, D.Phil.

PGP: http://www.infracaninophile.co.uk/pgpkey
JID: mat...@infracaninophile.co.uk

signature.asc

Fbsd8

unread,
Nov 23, 2012, 10:38:13 AM11/23/12
to
Can I browse the beta-test server repositories for the packages I want?

Amitabh Kant

unread,
Nov 23, 2012, 11:24:45 AM11/23/12
to
On Fri, Nov 23, 2012 at 12:33 AM, Matthew Seaman <
m.se...@infracaninophile.co.uk> wrote:

>
>
> Most people testing pkgng at the moment are building their own package
> sets -- poudriere is a popular choice for doing that -- and setting up
> their own private repositories.
>
> There should have been official FreeBSD pkgng repos available 'Real Soon
> Now' -- recent events have put the schedule back significantly, and
> everyone is primarily concerned with doing it right rather than doing it
> quickly. So, please wait patiently for an announcement. It will
> happen, even if it does seem an interminable wait.
>
> Cheers,
>
> Matthew
>
> --
> Dr Matthew J Seaman MA, D.Phil.
>
> PGP: http://www.infracaninophile.co.uk/pgpkey
> JID: mat...@infracaninophile.co.uk
>
>
Mathew

Can' we create a new format package using recent version of portmaster? Or
am I reading everything incorrectly?

Amitabh

Matthew Seaman

unread,
Nov 23, 2012, 11:50:02 AM11/23/12
to
On 23/11/2012 16:24, Amitabh Kant wrote:
> Can' we create a new format package using recent version of portmaster? Or
> am I reading everything incorrectly?

Yes, you can certainly do that. portmaster works pretty well with pkgng
although it is still missing a few features compared to using it with
pkg_tools.

Cheers,

Matthew

Matthew Seaman

unread,
Nov 23, 2012, 1:14:06 PM11/23/12
to
On 23/11/2012 15:38, Fbsd8 wrote:
> Can I browse the beta-test server repositories for the packages I want?

Download the repo catalogue by setting up your pkg.conf appropriately
then running:

pkg update

Then you can use tools like 'pkg search' or 'pkg rquery' to investigate
the available packages. (The first of those commands is more aimed at
human readable output, the second for scripting usage.)
signature.asc

Fbsd8

unread,
Nov 23, 2012, 2:19:54 PM11/23/12
to
Matthew Seaman wrote:
>> On 23/11/2012 15:38, Fbsd8 wrote:
>> Can I browse the beta-test server repositories for the packages I want?
>>
>
>
> Download the repo catalogue by setting up your pkg.conf appropriately
> then running:
>
> pkg update
>
> Then you can use tools like 'pkg search' or 'pkg rquery' to investigate
> the available packages. (The first of those commands is more aimed at
> human readable output, the second for scripting usage.)
>
>
>


Where do I find the url for the beta-test server repositories?
Can I use ftp or browser to see index content?

Walter Hurry

unread,
Nov 23, 2012, 3:36:03 PM11/23/12
to
On Thu, 22 Nov 2012 19:03:50 +0000, Matthew Seaman wrote:

> Most people testing pkgng at the moment are building their own package
> sets -- poudriere is a popular choice for doing that -- and setting up
> their own private repositories.

Yes, I too am building my own package set and creating a private
repository for local distributon. It seems to be working very well indeed.

Poudriere though: I read somewhere that ZFS is a prerequisite. Is that
so?

Second question: At the moment I'm using 'pkg create' to generate
packages from conventionally built ports, 'pkg repo' to create/update the
tarred repo file, and a tiny Python script for HTTP serving. Am I missing
out on some functionality?

Matthew Seaman

unread,
Nov 23, 2012, 4:16:02 PM11/23/12
to
On 23/11/2012 19:19, Fbsd8 wrote:
> Where do I find the url for the beta-test server repositories?
> Can I use ftp or browser to see index content?


pkg.conf as supplied in the port-mgmt/pkg port comes with the right URL
for the FreeBSD pkg repo[*], which is currently pointing at the
beta-test repo, but which will in the fullness of time be changed to
point at the actual production repo.

No, in general you can't assume that you'll be able to browse the repo
using a web browser or similar. Even if you could, all you'ld see is a
lot of pkg tarballs which would tell you the package names and versions
and how much data you'll need to download and not a lot else. Use the
repo catalogue. It can tell you almost anything you might want to know
about the available packages in the repo.

Cheers,

Matthew

[*] Note: the default URL uses an SRV record in the DNS, which typical
web browsers don't know how to handle. You'll just get NXDOMAIN if you
try and point Firefox at it.

For those who know how to handle SRV records, it looks like this:

worm:~:% dig _http._tcp.pkg.freebsd.org IN SRV

; <<>> DiG 9.8.3-P4 <<>> _http._tcp.pkg.freebsd.org IN SRV
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 48300
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;_http._tcp.pkg.freebsd.org. IN SRV

;; ANSWER SECTION:
_http._tcp.pkg.freebsd.org. 3600 IN SRV 10 10 80 pkgbeta.FreeBSD.org.

;; Query time: 44 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Fri Nov 23 21:13:50 2012
;; MSG SIZE rcvd: 83
signature.asc

Matthew Seaman

unread,
Nov 23, 2012, 4:26:50 PM11/23/12
to
On 23/11/2012 20:36, Walter Hurry wrote:
> Poudriere though: I read somewhere that ZFS is a prerequisite. Is that
> so?

Yes. poudriere uses the cloning and snapshotting abilities of ZFS as a
fundamental part of the way it works. You can use tinderbox instead if
you only have conventional filesystems, but that isn't so easy to use as
poudriere.

> Second question: At the moment I'm using 'pkg create' to generate
> packages from conventionally built ports, 'pkg repo' to create/update the
> tarred repo file, and a tiny Python script for HTTP serving. Am I missing
> out on some functionality?

Convenience mostly. Basically what the package building software does
is take the repetitive chore of typing 'make buildpackage' over and over
again, and automates it.

Pkg repos built 'by hand' have exactly the functionality as those built
using poudriere. You only need a very basic webserver to publish the
packages, or you can just use a file:// URL and no HTTP server at all if
you're creating packages to be used on the same machine.
signature.asc

Fbsd8

unread,
Nov 28, 2012, 12:29:05 PM11/28/12
to
Matthew Seaman wrote:
> On 23/11/2012 19:19, Fbsd8 wrote:
>> Where do I find the url for the beta-test server repositories?
>> Can I use ftp or browser to see index content?
>
>
> pkg.conf as supplied in the port-mgmt/pkg port comes with the right URL
> for the FreeBSD pkg repo[*], which is currently pointing at the
> beta-test repo, but which will in the fullness of time be changed to
> point at the actual production repo.

There is no pkg.conf supplied. It's named as pkg.conf.sample this fact
is not mentioned anywhere. pkg should be released with a default
pkg.conf not a pkg.conf.sample so pkg is ready to function right from
the original install of pkg.
Yes the url pkgbeta.FreeBSD.org can be browsed using a browser.
As of Nov 28 pkgbeta.FreeBSD.org only contains the pkg package.
So in conclusion, pkg is not ready for testing.

Frank

unread,
Nov 29, 2012, 4:48:20 PM11/29/12
to
It is safe yet to use pkg2ng in production?

--
Frank
> > worm:~:% dig _http._tcp.pkg.freebsd.org (http://_http._tcp.pkg.freebsd.org) IN SRV
> >
> > ; <<>> DiG 9.8.3-P4 <<>> _http._tcp.pkg.freebsd.org (http://_http._tcp.pkg.freebsd.org) IN SRV
> > ;; global options: +cmd
> > ;; Got answer:
> > ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 48300
> > ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
> >
> > ;; QUESTION SECTION:
> > ;_http._tcp.pkg.freebsd.org (http://_http._tcp.pkg.freebsd.org). IN SRV
> >
> > ;; ANSWER SECTION:
> > _http._tcp.pkg.freebsd.org (http://_http._tcp.pkg.freebsd.org). 3600 IN SRV 10 10 80 pkgbeta.FreeBSD.org (http://pkgbeta.FreeBSD.org).
> >
> > ;; Query time: 44 msec
> > ;; SERVER: 8.8.8.8#53(8.8.8.8)
> > ;; WHEN: Fri Nov 23 21:13:50 2012
> > ;; MSG SIZE rcvd: 83
> >
>
>
> Yes the url pkgbeta.FreeBSD.org (http://pkgbeta.FreeBSD.org) can be browsed using a browser.
> As of Nov 28 pkgbeta.FreeBSD.org (http://pkgbeta.FreeBSD.org) only contains the pkg package.
> So in conclusion, pkg is not ready for testing.
>
>
> _______________________________________________
> freebsd-...@freebsd.org (mailto:freebsd-...@freebsd.org) mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questi...@freebsd.org (mailto:freebsd-questi...@freebsd.org)"

Damien Fleuriot

unread,
Nov 29, 2012, 6:16:21 PM11/29/12
to
Used it on 8.3 boxes here, no complaints so far.

Gonna slowly transition all our ~60 firewalls to pkgng.

Note that I used pkg2ng on firewall boxes with ~180 installed ports each.

Frank

unread,
Nov 29, 2012, 6:57:11 PM11/29/12
to


--
Frank


On Thursday, November 29, 2012 at 11:16 PM, Damien Fleuriot wrote:

> Used it on 8.3 boxes here, no complaints so far.
>
> Gonna slowly transition all our ~60 firewalls to pkgng.
>
> Note that I used pkg2ng on firewall boxes with ~180 installed ports each.
>
pretty nice :)

Tomorrow I'm going to prepare a 9.1-RC3 with pkgng. Wish me luck :)
> > > > worm:~:% dig _http._tcp.pkg.freebsd.org (http://_http._tcp.pkg.freebsd.org) (http://_http._tcp.pkg.freebsd.org) IN SRV
> > > >
> > > > ; <<>> DiG 9.8.3-P4 <<>> _http._tcp.pkg.freebsd.org (http://_http._tcp.pkg.freebsd.org) (http://_http._tcp.pkg.freebsd.org) IN SRV
> > > > ;; global options: +cmd
> > > > ;; Got answer:
> > > > ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 48300
> > > > ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
> > > >
> > > > ;; QUESTION SECTION:
> > > > ;_http._tcp.pkg.freebsd.org (http://_http._tcp.pkg.freebsd.org) (http://_http._tcp.pkg.freebsd.org). IN SRV

Richard Tobin

unread,
Nov 30, 2012, 5:03:45 AM11/30/12
to
> Tomorrow I'm going to prepare a 9.1-RC3 with pkgng. Wish me luck :)

Where is the pkgng repository for 9.1-RC3?

-- Richard

--
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.
0 new messages