DaemonForums  

Go Back   DaemonForums > NetBSD > NetBSD Package System (pkgsrc)

NetBSD Package System (pkgsrc) Installation and upgrading of packages on NetBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 29th April 2015
DaBSD DaBSD is offline
Fdisk Soldier
 
Join Date: Jan 2013
Location: Russia/Iceland
Posts: 70
Thanked 0 Times in 0 Posts
Default pkgin in vs. pkg_add

It happens rather often than seldom that when I try to install a binary package with 'pkgin in', nothing gets done, but when I go for the good old 'pkg_add', the package is found and installed. Does it have to do with the difference between the version in the repository and the actual version of the installed OS? Here's an example:

Code:
bash-4.2# pkgin in lynx  
calculating dependencies... done.

nothing to upgrade.
1 packages to be installed: lynx-2.8.7nb5 (2087K to download, 4978K to install)

proceed ? [Y/n] y
downloading packages...
lynx-2.8.7nb5 is not available on the repository
proceed ? [y/N] n
pkgin: lynx-2.8.7nb5 is not available on the repository

bash-4.2# pkg_add lynx
pkg_add: Warning: package `lynx-2.8.8.2' was built for a platform:
pkg_add: NetBSD/i386 6.0 (pkg) vs. NetBSD/i386 6.1.2 (this host)
lynx-2.8.8.2: copying /usr/pkg/share/examples/lynx/lynx.cfg to /usr/pkg/etc/lynx.cfg
lynx-2.8.8.2: copying /usr/pkg/share/examples/lynx/lynx.lss to /usr/pkg/etc/lynx.lss
And voila, lynx is installed! What's wrong with pkgin then?
Reply With Quote
  #2   (View Single Post)  
Old 30th April 2015
fn8t's Avatar
fn8t fn8t is offline
Real Name: Ego
Shell Scout
 
Join Date: May 2014
Location: Tao
Posts: 116
Thanked 0 Times in 0 Posts
Default

Have you tried pkgin update?

What is the contents of /usr/pkg/etc/pkgin/repositories.conf?
Reply With Quote
  #3   (View Single Post)  
Old 30th April 2015
darktrym's Avatar
darktrym darktrym is offline
Port Guard
 
Join Date: Feb 2011
Location: Germany
Posts: 19
Thanked 0 Times in 0 Posts
Default

For me looks like that pkgin database is out of sync with the online repo.
Reply With Quote
  #4   (View Single Post)  
Old 3rd May 2015
DaBSD DaBSD is offline
Fdisk Soldier
 
Join Date: Jan 2013
Location: Russia/Iceland
Posts: 70
Thanked 0 Times in 0 Posts
Default

Yes, done 'pkgin update' a few times before, on first install and one other time. But was not clinical about doing it on regular basis (I almost install no new soft due to HD space limitations).

Contents of /usr/pkg/etc/pkgin/repositories.conf (uncommented stuff only):

ftp://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/$arch/6.0/All

Running 'pkgin update' did certainly solve the problem (the above file didn't change, but the pkg summary was refreshed), so thank you everyone!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
pkgsrc/pkgin path tolstoi NetBSD Package System (pkgsrc) 4 25th April 2015 01:26 PM
pkgin can't fetch pkg_summary.gz from master site pawaan NetBSD Package System (pkgsrc) 0 6th October 2013 12:06 PM
pkgin accident...any known solutions? enoch82 Other BSD and UNIX/UNIX-like 1 28th April 2013 02:32 PM
pkg_add times out (?) Daffy OpenBSD Packages and Ports 0 27th July 2012 09:41 PM
pkgin - fetch failure/ Not logged in nihonto NetBSD Package System (pkgsrc) 1 5th March 2011 01:27 PM


All times are GMT. The time now is 06:16 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick