[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Forcing multiple package downgrades.



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thursday 03 October 2002 20:42, Douglas Hoen wrote:
> I want to downgrade an arbitrary set of packages to lower versions, en
> masse _without manual intervention_. I have a repository containing a
> complete set of packages that I want to install onto any system, forcing
> downgrades if necessary. (All dependent packages are contained in the
> repository.)
>
> Is there some way to do this? For instance, is there some way to instruct
> the policy engine when doing a dist-upgrade to perform automatic downgrades
> of particular packages by using pin priorities?
>
> BTW, I have tried using various apt-get install and dist-upgrade
> combinations without success. For instance, I have tried to make a
> meta-package listing the specific verstions that I want, but "apt-get
> install <meta-package>" fails with an error listing unmet dependencies for
> versions that require downgrading. (The actual error message is: "Sorry,
> but the following packages have unmet dependencies: <meta-package>:
> Depends: <sub-package> (= <version-listed-in-meta>) but
> <installed-newer-version> is to be installed".)

Read apt_preferences(5).

If you set the preferences file /etc/apt/preferences to give your local 
packages/local server a priority of >1000 (1010, say), then apt will install 
those packages even if it has to downgrade from the currently installed 
packages.

Paul Cupis
- -- 
paul@cupis.co.uk

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9nKcNIzuKV+SHX/kRAk1mAJ96rHby2fczLL5bVwA+II2+chDe8ACfXhIs
RjqStfV90EjTbNI/K0oyhlA=
=J7jX
-----END PGP SIGNATURE-----



Reply to: