I am trying to learn FreeBSD and have been trying to install xorg-minimal, gedit and libreoffice offline for a couple of weeks now (read manual) and just keep going around in circles. It is a new install of FreeBSD 10. Is there anyone here who will take the time to help and go through the basics for me?
I have saved xorg-minimal-7.5.2.tbz and gedit and libreoffice to disk and also succeeded in installing pkg-1.8.3.
During my last attempt, I edited a /usr/local/etc/pkg/repos/FreeBSD.conf
like this:
FreeBSD: {
enabled: no
}
and then edited /usr/local/etc/pkg/repos/<fileName>.conf
like this:
file name: {
url: file:///.../.../.../<packages>/
enabled: yes
}
When I try to use pkg install
, I get errors like these:
pkg: file:/.../.../meta.txz : No such file or directory
pkg: repository ... has no meta file,
pkg: file:/.../.../digests.txz: No such file or directory
pkg: ///xorg-minimal-7.5.2.tbz is not a valid package: no manifest found
Like I said, I have tried so many things, I am starting to feel a little punch drunk and it would not surprise me if I am leaving out some critical step.
Best Answer
pkg
relies on various metadata files that you don't have on your local machine, because they are downloaded from a configured package repository. I think the best solution here is to revert to using the default FreeBSD repo, and simply use thepkg add
command, which will attempt to install a package from a local package archive file, instead ofpkg install
, which will search your configured repos and attempt to install a package from a remote source.Incidentally, you can also use
pkg fetch
to download package archive files from a configured repo, for installation later usingpkg add
:The
-d
flag topkg fetch
tellspkg
to download any dependencies that may be required to successfully install the named package. Note that by default, packages downloaded in this manner are stashed in/var/cache/pkg
, and you'll need to include the path to the archive file when you callpkg add
.