Jump to content
Sign in to follow this  

débutant Résoudre les nouveaux pkg sur FreeBSD 9

Recommended Posts

Posted (edited)

Temps estimé : ~ 5 à 10 minutes



voici comment résoudre les nouveaux pkg sur FreeBSD 9



I. Partie I




Remplacer le fichier pkg.conf


$ mv /usr/local/etc/pkg.conf /usr/local/etc/pkg.conf.old
$ cp /usr/local/etc/pkg.conf.sample /usr/local/etc/pkg.conf


Ajouter la clé pkg autorisée


$ mkdir -p /usr/share/keys/pkg/trusted /usr/share/keys/pkg/revoked
$ cd /usr/share/keys/pkg/trusted
$ fetch http://svn0.us-west.freebsd.org/base/head/share/keys/pkg/trusted/pkg.freebsd.org.2013102301


 Modifier le fichier de configuration


 $ ee /etc/pkg/FreeBSD.conf


Ajouter :


# $FreeBSD$
# To disable this repository, instead of modifying or removing this file,
# create a /usr/local/etc/pkg/repos/FreeBSD.conf file:
#   mkdir -p /usr/local/etc/pkg/repos
#   echo "FreeBSD: { enabled: no }" > /usr/local/etc/pkg/repos/FreeBSD.conf

FreeBSD: {
  url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest",
  mirror_type: "srv",
  signature_type: "fingerprints",
  fingerprints: "/usr/share/keys/pkg",
  enabled: yes


Forcer la vérification de mise à jour


 $ pkg update -f




Edited by Eunji (see edit history)

Share this post

Link to post

Es ce que c'est aussi fonctionnel sur freebsd 11.3 ? Parce que j'ai certain pkg qui ne fonctionne pas

Share this post

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.