pkgng: how to upgrade a single port?

Loïc BLOT loic.blot at unix-experience.fr
Mon Nov 4 19:01:14 UTC 2013


Upgrading a single port can be useful.
Yaourt on archlinux permit to edit a text file to remove packages we
doesn't want to remove, why not do like it ?

-- 
Best regards,
Loïc BLOT, 
UNIX systems, security and network engineer
http://www.unix-experience.fr



Le lundi 04 novembre 2013 à 10:56 -0800, Freddie Cash a écrit :
> On Mon, Nov 4, 2013 at 10:19 AM, Mike Jakubik <
> mike.jakubik at intertainservices.com> wrote:
> 
> > On 11/03/13 17:24, George Kontostanos wrote:
> >
> >> You can alway lock a package or the packages that you don't need to
> >> upgrade. See: "pkg help lock"
> >>
> >
> 
> > Thanks for the info but that would be very tedious to do. Is it just me or
> > is this a gross oversight of this new pkg system? Also the fact that with a
> > pkg you can not choose any options for the port, you have to install with
> > options that the port maintainer chose. As it stands now if i do pkg
> > upgrade it wants to pull in a bunch of stuff that i do not want, also it
> > wants to re-install just about everything because of a "direct dependency
> > changed", im not sure this is correct as it wanted to re-install pkg itself
> > just after I freshly installed it from ports.
> >
> 
> It's not a limitation in the system; it's a disconnect between how things
> work and what you expect.  :)
> 
> The official packages are built using the default options for each port,
> and they are created in a single batch.  They are designed to be upgraded
> all at once so that everything is from the same compilation run, using the
> same builds of dependencies, etc.
> 
> It's expected that you will either never update the local repository file
> (ie, never run "pkg update" and add -U to all commands) so that everything
> is installed from the same repo version; or that you will specify a
> specific date in the repo path; or that you will upgrade everything in
> lock-step with the repo (always run "pkg update" before an install; always
> run a "pkg upgrade" after an update).
> 
> If you want the most flexibility in how ports are configured, ability to
> install a single port, upgrade a single port, etc, then it's expected that
> you would use the ports tree directly, and compile everything yourself.
> 
> If you want the best of both worlds (ability to configure ports however you
> want; ability to upgrade indibidual ports; not have to compile everything
> for every little change; etc) then you want to look into
> ports-mgmt/poudriere.  That allows you to create local pkg repos of
> packages built however you like.  And you control when a port gets upgraded
> in the pkg repo, and which dependencies get upgraded in the local pkg repo,
> etc.
> 
> It sounds like poudriere is what you want, not the official pkg repo.
> ​​
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 230 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20131104/86c52691/attachment.sig>


More information about the freebsd-stable mailing list