186ba
![]() |
|
|
|
|
|||||||
| Installation and Maintenance of FreeBSD Ports or Packages Installing and maintaining the FreeBSD Ports Collection or FreeBSD Packages (i.e. third party software). |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Hello, I'm on FreeBSD 9.0 Stable, and after todays ports update, I show the new pkg2ng thing.
Is this only for Current? because it broke my pkgdb, after executing the portmaster instructions in ports Updating file. |
|
#2
|
||||
|
||||
|
Please read carefully:
Quote:
Last edited by cpu82; March 30th, 2013 at 02:12. Reason: Correct syntax |
|
#3
|
|||
|
|||
|
Code:
20121015: AFFECTS: users of ports-mgmt/portmaster AUTHOR: bdrewery@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. # make -C /usr/ports/ports-mgmt/portmaster config build deinstall install clean # echo 'WITH_PKGNG=yes' >> /etc/make.conf # pkg2ng 20121015: AFFECTS: users of ports-mgmt/portupgrade AUTHOR: bdrewery@FreeBSD.org Portupgrade now supports pkgng. To use pkgng, enable it in your make.conf, and convert your databases. # echo 'WITH_PKGNG=yes' >> /etc/make.conf # pkg2ng # pkgdb -fu |
|
#4
|
|||
|
|||
|
To make the point more clear, the mentioned tools do support PKGNG but nothing forces you to use PKGNG at this point. It's only if you're on 10-CURRENT PKGNG is turned on by default.
|
|
#5
|
||||
|
||||
|
Quote:
__________________
Senior UNIX Engineer at Unix Support Nederland Experience is something you don't get until just after you need it. |
|
#6
|
|||
|
|||
|
Well thanks for the answers, the thing is that when I run the pkg2ng, perl-5.16.0 didn't installed because it was installing files in the same place with p5-IO-Compress-2.055, so the conversion ended up in failure.
While executing the steps below to recover my system, pkgdb complained that there wasn't any packages in the database. Code:
# rm -/var/db/pkg/pkgdb.db # pkgdb -Ffuv |
|
#7
|
|||
|
|||
|
I was using portmanager before, I think that I must be reinstall all system in order to rebuilds the system with portmaster, portupgrade or pkgng.
Code:
server# make install clean /usr/ports/ports-mgmt/pkg/work/pkg-1.0.1/pkg-static/pkg-static: not found *** Error code 127 Stop in /usr/ports/ports-mgmt/pkg. server# |
|
#8
|
||||
|
||||
|
No, but you should reinstall the port upgrade programs after rebuilding them with the patches so they will see the new package information. It's not just a rebuild, use make config in the port directory to turn on the pkgng patches.
|
| The Following User Says Thank You to wblock@ For This Useful Post: | ||
wmoreno3 (October 21st, 2012) | ||
|
#9
|
|||
|
|||
|
I had the same problem. I followed the instructions to use pkgng and suddenly my pkgdb was gone, the system kept telling me no packages were installed. Luckily I was able to undo all this, by restoring /var/db/pkg.bak, comment WITH_PKGNG=yes in /etc/make.conf and recompile ports-mgmt/portmaster and ports-mgmt/portupgrade without PKGNG support.
However, I do like to know what went wrong. Can someone explain this to me? |
|
#10
|
||||
|
||||
|
Nothing went wrong, it did exactly what it's supposed to do. PKGNG is a replacement for the pkg_tools. If you start using it the old tools won't work anymore. This is by design.
__________________
Senior UNIX Engineer at Unix Support Nederland Experience is something you don't get until just after you need it. |
|
#11
|
|||
|
|||
|
So, commands like
Code:
pkg_version -v | grep '<'
|
|
#12
|
||||
|
||||
|
Quote:
Quote:
# pkg version -v | grep '<'Quote:
http://wiki.freebsd.org/pkgng
__________________
Senior UNIX Engineer at Unix Support Nederland Experience is something you don't get until just after you need it. |
|
#13
|
|||
|
|||
|
Aha, now I know what I did wrong.
Thanks for enlightening me
|
|
#14
|
||||
|
||||
|
Quote:
For example:
Once you install pkg(8) and convert the package database using pkg2ng(8), don't ever touch the pkg_* tools again. Only use the pkg equivalents. |
|
#15
|
|||
|
|||
|
Quote:
Sounds difficult, but I see no other reasons why not.
__________________
Using /lookat/ with zsh/grep/find/aliases/pipes/portmaster and /var/db/pkg/ flat files to meteorically speed port installs/upgrades forever hopefully... |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [Solved] ccache after pkg2ng | Martillo1 | Installation and Maintenance of FreeBSD Ports or Packages | 4 | September 1st, 2012 14:51 |