Hi:

I am really a newbie on OpenBSD. So my question might look stupid to you.

I am using the current release 4.6 installed from the file
install46.iso  on ftp://openbsd.ftp.fu-berlin.de/pub/OpenBSD/4.6/i386/

Have anyone encountered any problem using pkg_info, pkg_add, etc.?
They do not seem working to me.

Take a simplest example, when I checked pkg_info, the man page says:
...
        -A Show information for all currently installed packages,
including internal packages
...
but when I typed "pkg_info -A", it does not return anything. Just
silently back to the commond line prompt. Similarly, "-a" does not
work either.


I also tryed "pkg_info man46.tgz", "pkg_info -L man46.tgz" and none of
them gave me any response. (with man46.tgz in the current directory)

For pkg_add, I tried the following command:
        pkg_add man46.tgz   (again, man46.tgz is in the current directory)
and it responded:
        Can't resolve man46.tgz
and
        pkg_add man46        (with "export PKG_PATH=/mnt/cdrom/4.6/i386")
and it responded:
        Can't find CONTENTS from file:/mnt/cdrom/4.6/i386/man46.tgz
        /usr/sbin/pkg_add: man46: Fatal error
and another try:
        pkg_add ./man46
gives similar response:
        Can't find CONTENTS from file:./man46.tgz
        /usr/sbin/pkg_add: man46: Fatal error

It seems like man46.tgz has a wrong format (with missing CONTENTS?)
but all the other .tgz files on the CD (from install46.iso) have the
same problem.

In addition, it seems that "pkg_add ./man46" is more like the correct
command than "pkg_add man46.tgz". However, "man packages" says:
----
... Adding a new package is as simple as
        pkg_add foo-1.0-vanilla.tgz
----
So I am quite confused (regarding the suffix .tgz, keep it or not?).
How should we really use the command pkg_info and pkg_add? Are the
manuals up-to-date?

These problems are not critical problems since we can probably just go
through the scripts of these commands and see what's inside and maybe
there is just a easy way to fix it. My question is, however,

1) Did I get the corrent release file? The sha sum of my iso matches
the key listed on their web (d53855c34bfa2d7b46f643ca4de8cc55debd8524)
but I have not checked other sites yet.
2) The usage of pkg_add and pkg_info seems to be different from the
FreeBSD version. And OpenBSD seems also using its own set of basic
commands like cp instead of GNU set. So I wonder maybe I missed
something basic for OpenBSD users?
3) are such problems common to OpenBSD users and how people usually
solve such problems? Built-in manual (seems not very reliable to me)
or search the web? It seems a little annoying to get stucked with such
basic things.

Any comments on the specific package problems or the above general
questions on OpenBSD are much appreciated. Thanks.

Best,

Song

ps. even though I do not think it's relevant to dmesg output, I think
it does not hurt so I still paste it here:

========= dmesg ================
OpenBSD 4.6 (GENERIC.MP) #89: Thu Jul  9 21:32:39 MDT 2009
    dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP
cpu0: Intel(R) Core(TM)2 Duo CPU T9300 @ 2.50GHz ("GenuineIntel"
686-class) 2.50 GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,CX16,xTPR
real mem  = 3756036096 (3582MB)
avail mem = 3647295488 (3478MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 11/19/08, BIOS32 rev. 0 @
0xffa10, SMBIOS rev. 2.4 @ 0xf71e0 (45 entries)
bios0: vendor Dell Inc. version "A12" date 11/19/2008
bios0: Dell Inc. XPS M1530
acpi0 at bios0: rev 2
acpi0: tables DSDT FACP HPET APIC MCFG SLIC OSFR BOOT SSDT
acpi0: wakeup devices PCI0(S5) PCIE(S4) USB1(S0) USB2(S0) USB3(S0)
USB4(S0) USB5(S0) EHC2(S0) EHCI(S0) AZAL(S3) RP01(S5) RP02(S3)
RP03(S3) RP04(S3) RP05(S3) RP06(S3) LID_(S3) PBTN(S4) MBTN(S5)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 14318179 Hz
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: apic clock running at 199MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM)2 Duo CPU T9300 @ 2.50GHz ("GenuineIntel"
686-class) 2.50 GHz
cpu1: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,CX16,xTPR
ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 20, 24 pins
ioapic0: misconfigured as apic 0, remapped to apid 2
acpiprt0 at acpi0: bus 3 (PCIE)
acpiprt1 at acpi0: bus 1 (AGP_)
acpiprt2 at acpi0: bus 9 (RP01)
acpiprt3 at acpi0: bus 11 (RP02)
acpiprt4 at acpi0: bus -1 (RP03)
acpiprt5 at acpi0: bus -1 (RP04)
acpiprt6 at acpi0: bus 12 (RP05)
acpiprt7 at acpi0: bus -1 (RP06)
acpiprt8 at acpi0: bus 0 (PCI0)
acpicpu0 at acpi0: C3, C2, C1, PSS
acpicpu1 at acpi0: C3, C2, C1, PSS
acpitz0 at acpi0: critical temperature 126 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: PBTN
acpibtn2 at acpi0: SBTN
acpiac0 at acpi0: AC unit online
acpibat0 at acpi0: BAT0 model "DELL RN8949" serial 1051 type LION oem "SMP"
acpivideo0 at acpi0: VID_
acpivout0 at acpivideo0: TV__
acpivout1 at acpivideo0: CRT_
acpivout2 at acpivideo0: LCD_
acpivout3 at acpivideo0: DVI_
bios0: ROM list: 0xc0000/0xd800 0xcd800/0x2800
cpu0: Enhanced SpeedStep 2494 MHz: speeds: 2501, 2500, 2000, 1600, 1200, 800 MHz
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Intel GM965 Host" rev 0x0c
ppb0 at pci0 dev 1 function 0 "Intel GM965 PCIE" rev 0x0c: apic 2 int 16 (irq 0)
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 "NVIDIA GeForce 8600M GT" rev 0xa1
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
uhci0 at pci0 dev 26 function 0 "Intel 82801H USB" rev 0x02: apic 2
int 20 (irq 11)
uhci1 at pci0 dev 26 function 1 "Intel 82801H USB" rev 0x02: apic 2
int 21 (irq 10)
ehci0 at pci0 dev 26 function 7 "Intel 82801H USB" rev 0x02: apic 2
int 22 (irq 9)
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
azalia0 at pci0 dev 27 function 0 "Intel 82801H HD Audio" rev 0x02:
apic 2 int 21 (irq 10)
azalia0: codecs: Sigmatel STAC9228X
audio0 at azalia0
ppb1 at pci0 dev 28 function 0 "Intel 82801H PCIE" rev 0x02: apic 2
int 16 (irq 0)
pci2 at ppb1 bus 9
mskc0 at pci2 dev 0 function 0 "Marvell Yukon 88E8040" rev 0x12,
Yukon-2 FE+ rev. A0 (0x0): apic 2 int 16 (irq 7)
msk0 at mskc0 port A: address 00:23:ae:11:5c:48
eephy0 at msk0 phy 0: 88E3016 10/100 PHY, rev. 0
ppb2 at pci0 dev 28 function 1 "Intel 82801H PCIE" rev 0x02: apic 2
int 17 (irq 0)
pci3 at ppb2 bus 11
iwn0 at pci3 dev 0 function 0 "Intel Wireless WiFi Link 4965" rev
0x61: apic 2 int 17 (irq 7), MIMO 2T3R, MoW1, address
00:21:5c:83:45:61
ppb3 at pci0 dev 28 function 4 "Intel 82801H PCIE" rev 0x02: apic 2
int 16 (irq 0)
pci4 at ppb3 bus 12
uhci2 at pci0 dev 29 function 0 "Intel 82801H USB" rev 0x02: apic 2
int 20 (irq 11)
uhci3 at pci0 dev 29 function 1 "Intel 82801H USB" rev 0x02: apic 2
int 21 (irq 10)
uhci4 at pci0 dev 29 function 2 "Intel 82801H USB" rev 0x02: apic 2
int 22 (irq 9)
ehci1 at pci0 dev 29 function 7 "Intel 82801H USB" rev 0x02: apic 2
int 20 (irq 11)
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 "Intel EHCI root hub" rev 2.00/1.00 addr 1
ppb4 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0xf2
pci5 at ppb4 bus 3
ichpcib0 at pci0 dev 31 function 0 "Intel 82801HBM LPC" rev 0x02: PM disabled
pciide0 at pci0 dev 31 function 1 "Intel 82801HBM IDE" rev 0x02: DMA,
channel 0 configured to compatibility, channel 1 configured to
compatibility
atapiscsi0 at pciide0 channel 0 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <MATSHITA, BD-RE UJ-225S, Q310> ATAPI
5/cdrom removable
cd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
pciide0: channel 1 ignored (disabled)
pciide1 at pci0 dev 31 function 2 "Intel 82801HBM SATA" rev 0x02: DMA,
channel 0 configured to native-PCI, channel 1 configured to native-PCI
pciide1: using apic 2 int 17 (irq 10) for native-PCI interrupt
wd0 at pciide1 channel 0 drive 0: <SAMSUNG SSD RBX Series 128GB M>
wd0: 16-sector PIO, LBA48, 122104MB, 250069680 sectors
wd0(pciide1:0:0): using PIO mode 4, Ultra-DMA mode 5
ichiic0 at pci0 dev 31 function 3 "Intel 82801H SMBus" rev 0x02: apic
2 int 17 (irq 10)
iic0 at ichiic0
spdmem0 at iic0 addr 0x50: 2GB DDR2 SDRAM non-parity PC2-6400CL5 SO-DIMM
spdmem1 at iic0 addr 0x52: 2GB DDR2 SDRAM non-parity PC2-6400CL5 SO-DIMM
usb2 at uhci0: USB revision 1.0
uhub2 at usb2 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb3 at uhci1: USB revision 1.0
uhub3 at usb3 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb4 at uhci2: USB revision 1.0
uhub4 at usb4 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb5 at uhci3: USB revision 1.0
uhub5 at usb5 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb6 at uhci4: USB revision 1.0
uhub6 at usb6 "Intel UHCI root hub" rev 1.00/1.00 addr 1
isa0 at ichpcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
spkr0 at pcppi0
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
mtrr: Pentium Pro MTRR support
uvideo0 at uhub0 port 1 configuration 1 interface 0 "OmniVision
Technologies, Inc. -2640-08.05.12.1 Laptop Integrated Webcam" rev
2.00/1.00 addr 2
video0 at uvideo0
ugen0 at uhub2 port 2 "STMicroelectronics Biometric Coprocessor" rev
1.00/0.01 addr 2
uhub7 at uhub6 port 2 "Broadcom BCM2045B2" rev 2.00/1.00 addr 2
ubt0 at uhub7 port 1 "Broadcom Corp BCM2045" rev 2.00/3.67 addr 3
uhidev0 at uhub7 port 2 configuration 1 interface 0 "Broadcom product
0x4502" rev 2.00/1.00 addr 4
uhidev0: iclass 3/1
ukbd0 at uhidev0: 8 modifier keys, 6 key codes
wskbd1 at ukbd0 mux 1
wskbd1: connecting to wsdisplay0
uhidev1 at uhub7 port 3 configuration 1 interface 0 "Broadcom product
0x4503" rev 2.00/1.00 addr 5
uhidev1: iclass 3/1, 125 report ids
ums0 at uhidev1 reportid 2: 3 buttons
wsmouse1 at ums0 mux 0
uhid0 at uhidev1 reportid 125: input=2, output=0, feature=0
softraid0 at root
root on wd0a swap on wd0b dump on wd0b
umass0 at uhub1 port 3 configuration 1 interface 0 " USB DISK 2.0" rev
2.00/1.10 addr 2
umass0: using SCSI over Bulk-Only
scsibus1 at umass0: 2 targets, initiator 0
sd0 at scsibus1 targ 1 lun 0: <, USB DISK 2.0, PMAP> SCSI0 0/direct removable
sd0: 122MB, 512 bytes/sec, 251776 sec total
sd0 detached
scsibus1 detached
umass0 detached
umass0 at uhub1 port 3 configuration 1 interface 0 " USB DISK 2.0" rev
2.00/1.10 addr 2
umass0: using SCSI over Bulk-Only
scsibus1 at umass0: 2 targets, initiator 0
sd0 at scsibus1 targ 1 lun 0: <, USB DISK 2.0, PMAP> SCSI0 0/direct removable
sd0: 122MB, 512 bytes/sec, 251776 sec total
sd0 detached
scsibus1 detached
umass0 detached
umass0 at uhub1 port 3 configuration 1 interface 0 " USB DISK 2.0" rev
2.00/1.10 addr 2
umass0: using SCSI over Bulk-Only
scsibus1 at umass0: 2 targets, initiator 0
sd0 at scsibus1 targ 1 lun 0: <, USB DISK 2.0, PMAP> SCSI0 0/direct removable
sd0: 122MB, 512 bytes/sec, 251776 sec total
sd0 detached
scsibus1 detached
umass0 detached
umass0 at uhub1 port 3 configuration 1 interface 0 " USB DISK 2.0" rev
2.00/1.10 addr 2
umass0: using SCSI over Bulk-Only
scsibus1 at umass0: 2 targets, initiator 0
sd0 at scsibus1 targ 1 lun 0: <, USB DISK 2.0, PMAP> SCSI0 0/direct removable
sd0: 122MB, 512 bytes/sec, 251776 sec total


================ hw info =======
hw.sensors.acpitz0.temp0=52.00 degC (zone temperature)
hw.sensors.acpiac0.indicator0=On (power supply)
hw.sensors.acpibat0.volt0=11.10 VDC (voltage)
hw.sensors.acpibat0.volt1=12.71 VDC (current voltage)
hw.sensors.acpibat0.amphour0=4.39 Ah (last full capacity)
hw.sensors.acpibat0.amphour1=0.78 Ah (warning capacity)
hw.sensors.acpibat0.amphour2=0.24 Ah (low capacity)
hw.sensors.acpibat0.amphour3=7.80 Ah (remaining capacity), OK
hw.sensors.acpibat0.raw0=0 (battery full), OK
hw.sensors.acpibat0.raw1=1 (rate)
hw.sensors.cpu0.temp0=46.00 degC


====== mount info =======
/dev/wd0a on / type ffs (local)
/dev/wd0n on /home type ffs (local, nodev, nosuid)
/dev/wd0d on /tmp type ffs (local, nodev, nosuid)
/dev/wd0f on /usr type ffs (local, nodev)
/dev/wd0h on /usr/local type ffs (local, nodev)
/dev/wd0m on /usr/obj type ffs (local, nodev, nosuid)
/dev/wd0l on /usr/src type ffs (local, nodev, nosuid)
/dev/wd0e on /var type ffs (local, nodev, nosuid)
/dev/cd0a on /mnt/cdrom type cd9660 (local, read-only)
/dev/wd0g on /usr/X11R6 type ffs (local)
/dev/sd0i on /mnt/usb type msdos (local)

Reply via email to