Other articles


  1. Hold/Unhold packages helper

    $ tail .bash_aliases

    # hold/unhold
    
    function hold {
        if [[ $# -ne 0 ]]; then
            for PKG in $\*; do
            echo "${PKG}" hold \| dpkg --set-selections && echo "Set ${PKG} on hold"
            done
        else
            echo "Currently on hold:"
            dpkg --get-selections \| grep hold \|\| echo "No packages set on hold"
        fi
    }
    
    function unhold {
        for PKG in $\*; do
            echo "${PKG}" install …
    read more

    There are comments.

Page 1 / 1

blogroll

social