Jump to content
×
×
  • Create New...

Résoudre les nouveaux pkg sur FreeBSD 9


Eunji
 Share

Recommended Posts

Temps estimé : ~ 5 à 10 minutes

 

Salut,

voici comment résoudre les nouveaux pkg sur FreeBSD 9

 

 

I. Partie I

Révélation

 

 

Remplacer le fichier pkg.conf

Révélation

$ 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

Révélation

$ 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

Révélation

 $ 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

Révélation

 $ pkg update -f

 

 

 

Edited by Eunji
Link to comment
Share on other sites

  • 2 weeks later...
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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
 Share



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.