LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   how to block one package from upgrading (https://www.linuxquestions.org/questions/fedora-35/how-to-block-one-package-from-upgrading-600764/)

alk77 11-19-2007 03:29 AM

how to block one package from upgrading
 
Hi,
I installed OpenOffice.org from the OOo website (I'm not using the Fedora package because I need the one provided by Sun) and now I would like to block yum from upgrading OOo. Is there any way to block the upgrading of a specific package?
Thanks,
a.

Joebie 11-19-2007 04:07 AM

man yum.conf
 
Look at the manual page of yum.conf (/usr/bin/man yum.conf) there's a line exclude there which u can use to exclude packages from install or update.
Example in the file /etc/yum/yum.conf or for a specific repository /etc/yum/repos.d/fedora(-updates).repo

exclude=openoffice-*

for multiple exclusion seperate by space

exclude=openoffice-* kernel*

alk77 11-19-2007 02:14 PM

Quote:

Originally Posted by Joebie (Post 2963867)
Look at the manual page of yum.conf (/usr/bin/man yum.conf) there's a line exclude there which u can use to exclude packages from install or update.
Example in the file /etc/yum/yum.conf or for a specific repository /etc/yum/repos.d/fedora(-updates).repo

exclude=openoffice-*

for multiple exclusion seperate by space

exclude=openoffice-* kernel*

Thanks! That helped!


All times are GMT -5. The time now is 10:27 AM.