Solved Cannot install KDE

I want to try FreeBSD on qemu. I installed it, but doing `pkg install kde` says: "No packages available to install maching `kde` have been found.

I follow these instructions in the official documentation, none of them worked so far.

In case anyone wonders, `pkg search` does not show any package named `kde`, `plasma6-plasma` or `x11/kde`, but KDE or Plasma-related packages do exist.
 
Alright, I've solved it myself.

sh:
# Install nano editor
pkg install nano

# Backup repo config for pkg just in case
cp /etc/pkg/FreeBSD.conf /etc/pkg/FreeBSD.conf.bak

# Then, open it up with nano
nano /etc/pkg/FreeBSD.conf

Finally, replace all "quarterly" with "latest".

For any googler: "Quarterly repo" for packages is for more stable experience, "latest repo" is rolling release like Arch.
 
No, do not edit /etc/pkg/FreeBSD.conf. How to properly switch is explained at the top of that file.

If you want to switch from quarterly to latest create a /usr/local/etc/pkg/repos/FreeBSD.conf:
For 14.x:
Code:
FreeBSD: { 
  url: "pkg+https://pkg.FreeBSD.org/${ABI}/latest"
}
FreeBSD-kmods: {
  url: "pkg+https://pkg.FreeBSD.org/${ABI}/kmods_latest_${VERSION_MINOR}"
}
For 15.x:
Code:
FreeBSD-ports: { 
  url: "pkg+https://pkg.FreeBSD.org/${ABI}/latest"
}
FreeBSD-ports-kmods: {
  url: "pkg+https://pkg.FreeBSD.org/${ABI}/kmods_latest_${VERSION_MINOR}"
}
 
Alright, I've solved it myself.

sh:
# Install nano editor
pkg install nano

# Backup repo config for pkg just in case
cp /etc/pkg/FreeBSD.conf /etc/pkg/FreeBSD.conf.bak

# Then, open it up with nano
nano /etc/pkg/FreeBSD.conf

Finally, replace all "quarterly" with "latest".

For any googler: "Quarterly repo" for packages is for more stable experience, "latest repo" is rolling release like Arch.
Just be aware that if you are using latest for base/ports you have to be extra careful when doing pkg upgrade otherwise you might lose software because some required dependencies may not be up to date.

Note: The same applies to all other branches but is more likely to bite you with latest.
 
Back
Top