File:  [NetBSD Developer Wiki] / wikisrc / pkgsrc / how_to_update_a_package_with_pkgsrc.mdwn
Revision 1.2: download - view: text, annotated - select for diffs
Sun Feb 5 07:14:36 2012 UTC (2 years, 2 months ago) by schmonz
Branches: MAIN
CVS tags: HEAD
dos2unix

Updating an installed package with pkgsrc

You may wish to also see [[Monitoring package versions]]

Say you have just been notified that dummy-5.1 is now available as dummy-5.2 so you want to update it.

    cd /usr/pkgsrc/*/dummy

Run a make update:

    make update
    ===> Deinstalling for dummy-5.1
    => Becoming ``root to make su-deinstall (/usr/bin/su)
    => Dropping ``root privileges.
    [...]
    WARNING: Package version dummy-5.1 in /usr/pkgsrc/*/dummy/work
    WARNING: Current version dummy-5.2 in */dummy
    WARNING: Cleaning and rebuilding dummy-5.2
    => Registering installation for dummy-5.2                                                                                                               
    ===> Cleaning for dummy-5.2

Package dummy has now been upgraded from 5.1 to 5.2 

CVSweb for NetBSD wikisrc <wikimaster@NetBSD.org> software: FreeBSD-CVSweb