Small inaccuracy with the FreeBSD Handbook

hitest

Well-Known Member

Thanks: 35
Messages: 312

#1
Greetings,

I have discovered a small inaccuracy in the FreeBSD Handbook. I encountered the error when installing XFCE on FreeBSD 9.2.
The FreeBSD Handbook lists the PKGng command to install XFCE as follows: # pkg install xfce4. That command yields no results. However, the following command does work: # pkg install xfce.

Respectfully submitted,

hitest
 

ShelLuser

Son of Beastie

Thanks: 1,377
Messages: 2,938

#2
I get the impression that this is more related to the repository than the handbook. First there is actually a port x11-wm/xfce4 so the naming seems correct. And when I try this using the current package manager this works as expected:

Code:
$ pkg_add -rn xfce4 | head -2
Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-9.2-release/Latest/xfce4.tbz... Done.
Package dependency iceauth-1.0.6 for ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-9.2-release/Latest/xfce4.tbz not found!
As such I'm tempted to put the blame with the repository.
 
OP
OP
hitest

hitest

Well-Known Member

Thanks: 35
Messages: 312

#3
ShelLuser said:
I get the impression that this is more related to the repository than the handbook. First there is actually a port x11-wm/xfce4 so the naming seems correct. And when I try this using the current package manager this works as expected:

Code:
$ pkg_add -rn xfce4 | head -2
Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-9.2-release/Latest/xfce4.tbz... Done.
Package dependency iceauth-1.0.6 for ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-9.2-release/Latest/xfce4.tbz not found!
As such I'm tempted to put the blame with the repository.
The PKGng system works differently than pkg_add. As you noted the command pkg_add -r xfce4 works. The command pkg install xfce4 does not work. It would be helpful if the command in the Handbook was edited.
 
OP
OP
hitest

hitest

Well-Known Member

Thanks: 35
Messages: 312

#4
Reported the error to the FreeBSD document project. I received a reply from Rene and the error will be corrected shortly.
 

wblock@

Administrator
Staff member
Administrator
Moderator
Developer

Thanks: 3,610
Messages: 13,850

#6
I'm not sure it's a correction. pkg(8) does globbing, so pkg add xfce is going to try to add every package that starts with "xfce". But those are not all part of the main x11-wm/xfce4 port.
 
OP
OP
hitest

hitest

Well-Known Member

Thanks: 35
Messages: 312

#7
wblock@ said:
I'm not sure it's a correction. pkg(8) does globbing, so pkg add xfce is going to try to add every package that starts with "xfce". But those are not all part of the main x11-wm/xfce4 port.
I'm talking about the new package manager. The older pkg_add command is still there in the handbook. That is, pkg_add -r xfce4.

pkg install xfce is for the new package manager, PKGng.
 
OP
OP
hitest

hitest

Well-Known Member

Thanks: 35
Messages: 312

#9
wblock@ said:
Yes, pkg(8) is the new package system.
Okay. My point was that the older stated command for PKGng, pkg install xfce4, did not work. The new command does work and properly installs Xfce 4.10. pkg install xfce
 

wblock@

Administrator
Staff member
Administrator
Moderator
Developer

Thanks: 3,610
Messages: 13,850

#10
Okay, the pkg(8) package is called xfce-versionnumber. pkg install has to match the whole package name. So yes, this is correct.
 

lucasreddinger

New Member


Messages: 5

#14
Do you know why it might not be working for me? I get this:

Code:
$ sudo pkg install xfce
Updating repository catalogue
pkg: No packages matching 'xfce' available in the repositories
I'm on FreeBSD 10.0-RELEASE-p1 amd64 with PKGNG.
 
Top