Last active
August 29, 2015 14:02
-
-
Save matias-pizarro/b712a99cc563dede1759 to your computer and use it in GitHub Desktop.
I have a repo set up at /mnt/usbdrive/packages. Going from pkg 1.2.5 (default on 10.0-RELEASE) to 1.2.7_2, the following set up stops working (pkg: unable to find catalog)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /usr/local/etc/pkg/repos/local.conf | |
local: { | |
url: "pkg+file:///mnt/usbdrive/packages", | |
mirror_type: "srv", | |
enabled : yes | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /usr/local/etc/pkg.conf | |
# System-wide configuration file for pkg(8) | |
# For more information on the file format and | |
# options please refer to the pkg.conf(5) man page | |
# Configuration options | |
#PKG_DBDIR : /var/db/pkg | |
#PKG_CACHEDIR : /var/cache/pkg | |
#PORTSDIR : /usr/ports | |
#PUBKEY : /etc/ssl/pkg.conf | |
#HANDLE_RC_SCRIPTS : NO | |
#ASSUME_ALWAYS_YES : NO | |
#SYSLOG : YES | |
#SHLIBS : NO | |
#AUTODEPS : NO | |
#PORTAUDIT_SITE : http://portaudit.FreeBSD.org/auditfile.tbz | |
#PKG_PLUGINS_DIR : /usr/local/lib/pkg/plugins | |
#PKG_ENABLE_PLUGINS : YES | |
#PLUGINS : [commands/mystat] | |
#REPO_AUTOUPDATE : YES | |
ALIAS : { | |
all-depends: query %dn-%dv, | |
annotations: info -A, | |
build-depends: info -qd, | |
download: fetch, | |
iinfo: info -i -g -x, | |
isearch: search -i -g -x, | |
leaf: query -e "%a == 0" "%n-%v", | |
leaf: query -e "%a == 0" "%n-%v", | |
list: info -ql, | |
origin: info -qo, | |
provided-depends: info -qb, | |
raw: info -R, | |
required-depends: info -qr, | |
shared-depends: info -qB, | |
show: info -f -k, | |
size: info -sq, | |
} | |
repos_dir: [ | |
"/etc/pkg", | |
"/usr/local/etc/pkg/repos", | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
On booting mfsbsd, I mount a partition that contains a packages repo with a few binaries I need offline (bash and python mainly).
The first pkg install xxx prompts me to update from pkg 1.2.5 to 1.2.7_2 and works fine, using the txz in my repo. Subsequent installs return
pkg: unable to find catalog
I suppose the conf files syntax might have changed or the files layout, but for all I know I have been conforming to what I have found, pkg.conf(5) mainly.
My repo is a few .txz files downloaded from http://pkg.freebsd.org/freebsd:10:x86:64/latest/All/, applying afterwards:
pkg repo /mnt/usbdrive/packages
Would anyone have a clue?
uname -a
FreeBSD mfsbsd 10.0-RELEASE FreeBSD 10.0-RELEASE #0 r260789: Thu Jan 16 22:34:59 UTC 2014 [email protected]:/usr/obj/usr/src/sys/GENERIC amd64
pkg install xxx
Updating repository catalogue
(... a line saying there is no address record for default FreeBSD digests.txz. Normal, since I am not connected to the net)
pkg: unable to find catalog
pkg -vv
Version : 1.2.7_2
PACKAGESITE :
PKG_DBDIR : /var/db/pkg
PKG_CACHEDIR : /var/cache/pkg
PORTSDIR : /usr/ports
PUBKEY :
HANDLE_RC_SCRIPTS : no
ASSUME_ALWAYS_YES : no
REPOS_DIR : [
/etc/pkg,
/usr/local/etc/pkg/repos,
]
PLIST_KEYWORDS_DIR :
SYSLOG : yes
AUTODEPS : yes
ABI : freebsd:10:x86:64
DEVELOPER_MODE : no
PORTAUDIT_SITE : http://portaudit.FreeBSD.org/auditfile.tbz
VULNXML_SITE : http://www.vuxml.org/freebsd/vuln.xml.bz2
MIRROR_TYPE : SRV
FETCH_RETRY : 3
PKG_PLUGINS_DIR : /usr/local/lib/pkg/
PKG_ENABLE_PLUGINS : yes
PLUGINS : [
]
DEBUG_SCRIPTS : no
PLUGINS_CONF_DIR : /usr/local/etc/pkg/
PERMISSIVE : no
REPO_AUTOUPDATE : yes
NAMESERVER :
EVENT_PIPE :
FETCH_TIMEOUT : 30
UNSET_TIMESTAMP : no
SSH_RESTRICT_DIR :
PKG_SSH_ARGS :
PKG_ENV : {
}
DISABLE_MTREE : no
DEBUG_LEVEL : 0
ALIAS : {
all-depends: query %dn-%dv,
annotations: info -A,
build-depends: info -qd,
download: fetch,
iinfo: info -i -g -x,
isearch: search -i -g -x,
leaf: query -e "%a == 0" "%n-%v",
list: info -ql,
origin: info -qo,
provided-depends: info -qb,
raw: info -R,
required-depends: info -qr,
shared-depends: info -qB,
show: info -f -k,
size: info -sq,
}
Repositories:
FreeBSD: {
url : "pkg+http://pkg.FreeBSD.org/freebsd:10:x86:64/latest",
enabled : yes,
mirror_type : "SRV",
signature_type : "FINGERPRINTS",
fingerprints : "/usr/share/keys/pkg"
}
local: {
url : "pkg+file:///mnt/usbdrive/packages",
enabled : yes,
mirror_type : "SRV"
}