instalace lokalniho balicku pomoci pkgNG

Martin Salac martin.salac at neverhood.cz
Wed Apr 22 22:46:57 CEST 2015


Dne 2015-04-22 19:20, Miroslav Lachman napsal:
> Martin Salac wrote on 04/22/2015 13:36:
>> Ahoj,
>> 
>> rad bych se zeptal, zda nekdo narazil na problem jak nainstalovat 
>> balicek
>> "stare struktury" (vytvoreny pro puvodni pkg_add) v systemu 
>> pouzivajici
>> pkgNG.

> [...]
> 
>> P.S. CLI nizsi verze skvele fungoval na FreeBSD 8.4 i386 pridanim pres
>> stary balikovaci system pkg_add
> 
> Dokazal bych takhle v rychlosti vymyslet treba podrbani se levou rukou
> za pravym uchem.
> 
> Vezmi stary system (treba 8.4, nejlepe v nejakem virtualu), nainstaluj
> tam ten stary balik, proved konverzi na pkg(ng) pomoci pkg2ng, pouzij
> pkg create pro vytvoreni noveho baliku v novem formatu a ten si nahraj
> na server, kde ho potrebujes :)
> 
> Urcite je to to nejhorsi reseni, ale nevyzaduje prilis casu na studium
> toho, jak funguje pkg_* jak funguje pkg(ng) a jak mezi nima
> konvertovat balik.


Dik za tip, ale konvertor pkg2ng si s instalovanymi baliky neporadi:


root at ebsdtst:/usr/local/etc/rc.d # pkg_info
hptraidconf-3.5     HighPoint RAID Management CLI
hptsvr-3.13         HighPoint RAID Management Service

root at bsdtst:~/1740/CLI-FreeBSD-3.5-1-100707 # pkg
The package management tool is not yet installed on your system.
Do you want to fetch and install it now? [y/N]: y
Bootstrapping pkg from 
pkg+http://pkg.FreeBSD.org/freebsd:9:x86:64/latest, please wait...
Verifying signature with trusted certificate 
pkg.freebsd.org.2013102301... done
Installing pkg-1.5.1...
Extracting pkg-1.5.1: 100%
Message for pkg-1.5.1:
If you are upgrading from the old package format, first run:

   # pkg2ng
pkg: not enough arguments
Usage: pkg [-v] [-d] [-l] [-N] [-j <jail name or id>|-c <chroot path>|-r 
<rootdir>] [-C <configuration file>] [-R <repo config dir>] [-o 
var=value] [-4|-6] <command> [<args>]

For more information on available commands and options see 'pkg help'.

root at ebsdtst:/usr/local/etc/rc.d # pkg2ng
Converting packages from /var/db/pkg
Converting hptsvr-3.13...
pkg: cannot parse keyword: cannot open file 
/usr/ports/Keywords/srcdir.ucl: No such file or directory
pkg: unknown keyword srcdir: @srcdir
Skipping invalid package: /var/db/pkg/hptsvr-3.13
Converting hptraidconf-3.5...
Installing hptraidconf-3.5...
pkg: Invalid package: object has missing property origin
pkg: the package is not valid
pkg: sqlite error while executing ROLLBACK TRANSACTION in file 
pkgdb.c:1209: cannot rollback - no transaction is active
Analysing shared libraries, this will take a while...
Checking all packages: 100%


(cisty virtual 9.3-R amd64)

M.


More information about the Users-l mailing list