Re: apt-get how to block/freeze a certain package version?
[email protected] Tue, 28 May 2002 21:38:09 -0500
| Newsgroups | gmane.linux.redhat.release.zoot |
|---|---|
| Message-ID | <[email protected]> |
Sasun Pundev wrote:
>
> Hi,
>
> I am trying to switch to apt-get ( in its rpm version).
>
> One thing I cannot figure out is how to freeze updating a certain package.
> For example I want to have program.1.0.1, but "$apt-get upgrade" will replace it with program.2.0.0, wich is unwanted by me.
> I am sure there is a way to do that ....
>
> Also, has anyone tried to update a 6.2 system to 7.x using apt-get???? Just curious.
>
> Kind regards
> sasun
>
I just used apt recently for the first time. I was able to go from
RedHat 7.1 to 7.3 without much trouble. I 'think' what you want to do to
keep certain packages from being touched is edit the /etc/apt/apt.conf
file. Add the list of packages you do NOT want touched to the line that
starts with:
HoldPkgs
mine looks like:
HoldPkgs {"kernel-source"; "kernel-headers"; };
rk