Re: installing packages
Barry Grumbine <[email protected]>
| Newsgroups | gmane.os.openbsd.www |
|---|---|
| Message-ID | <CAAtyRON3m8GvyKsVRRe2OGQdbrD639kVchaXfHmGxah28YGuvg@mail.gmail.com> |
On Mon, Aug 6, 2012 at 8:10 AM, Timothy Grison <[email protected]> wrote: > Hello, > > I just installed the 5.1 version a few days ago on an amd64 > architecture. However, being new to the unix system of commands, I have not so > far been able to install packages such as mozilla firefox. > I looked through > the manual and tried to make things easy by using the PKG_PATH environment > variable. To fetch the requested package, I therefore first typed: > $ export > PKG_PATH=/mnt/cdrom/5.1/packages/`machine -a`/ > and then: > pkg_add -v > mozilla-firefox > But the response I get at that point is the following: > file:/mnt/cdrom/5.1/packages/amd64/ is empty > Can't find mozilla-firefox > How > might I get around this? > > Thank you, > Timothy Grison > Hi Timothy, First off, this question would probably be more appropriate for the misc@ list. To use the instructions in FAQ 15.2.2, you must first mount(8) your CD on /mnt/cdrom $ sudo mkdir /mnt/cdrom $ sudo mount /dev/cd0a /mnt/cdrom or something like that, if you have trouble read the mount(8) and sudo(8) man pages: $ man mount I find it much easier to use an ftp mirror. That way you don't need to mount a CD every time you want to install a new package, and there are many more packages on the ftp mirrors than on the CD. Last but not least, if you use "`uname -r`" in place of "5.1" you don't have to touch your PKG_PATH in ~/.profile when you upgrade to "5.2". $ export PKG_PATH=ftp://your.ftp.mirror/pub/OpenBSD/`uname -r`/packages/`machine -a`/ -Barry