You are here: Home / Debian GNU/Linux / System / Software / Freeze the version of an installed package on Debian

Freeze the version of an installed package on Debian

by Pierre-Yves Landuré last modified Oct 11, 2013 07:14

It is sometimes needed to freeze the installed outdated version of a package. This howto ease the setup of suck a block.

This howto is tested on:

  • Debian 7.0 Wheezy

Parameters

Provide the name of the package which version is to freeze:

PACKAGE="vsftpd"

Configuration

Create the configuration file freezing the package version:

command echo "Package: ${PACKAGE}
Pin: origin installed
Pin-Priority: 900" \
    > "/etc/apt/preferences.d/version-freeze-${PACKAGE}"

The package is now freezed to its installed version.