Results 1 to 5 of 5

Thread: How to blacklist a package from being re-installed by ZYpp?

  1. Default How to blacklist a package from being re-installed by ZYpp?

    Hi,

    Sorry for posting this question in this forum, but I couldn't find a forum that was better suited to it. My question is simply how can I blacklist a package from being installed by ZYpp when I run zypper dup? I suspect a package group I've installed contains the package git-gui, I've uninstalled it (as I do not need it) with zypper rm, but whenever I run zypper dup I get:

    Code:
    Repository 'NVIDIA' is up to date.                                                                                                                                                                                               
    Repository 'Visual Studio Code' is up to date.                                                                                                                                                                                   
    Repository 'Brenton Horne's OBS repository (openSUSE_Tumbleweed)' is up to date.                                                                                                                                                 
    Repository 'openSUSE:Tumbleweed' is up to date.                                                                                                                                                                                  
    Repository 'home:badshah400:Scilab6' is up to date.                                                                                                                                                                              
    Repository 'science' is up to date.                                                                                                                                                                                              
    Repository 'openSUSE-20180107-0' is up to date.                                                                                                                                                                                  
    Repository 'packman' is up to date.                                                                                                                                                                                              
    Repository 'openSUSE-Tumbleweed-Non-Oss' is up to date.                                                                                                                                                                          
    Repository 'openSUSE-Tumbleweed-Source' is up to date.                                                                                                                                                                           
    Repository 'openSUSE-Tumbleweed-Update' is up to date.                                                                                                                                                                           
    All repositories have been refreshed.
    Warning: You are about to do a distribution upgrade with all enabled repositories. Make sure these repositories are compatible before you continue. See 'man zypper' for more information about this command.
    Loading repository data...
    Reading installed packages...
    Computing distribution upgrade...
    
    Problem: problem with installed package 0ad-0.0.22-2.1.x86_64
     Solution 1: deinstallation of 0ad-0.0.22-2.1.x86_64
     Solution 2: keep obsolete 0ad-0.0.22-2.1.x86_64
    
    Choose from above solutions by number or cancel [1/2/c] (c): 2
    Resolving dependencies...
    Computing distribution upgrade...
    
    The following item is locked and will not be changed by any action:
     Installed:
      0ad
    
    The following NEW package is going to be installed:
      git-gui
    
    1 new package to install.
    Overall download size: 307.6 KiB. Already cached: 0 B. After the operation, additional 1.2 MiB will be used.
    Continue? [y/n/...? shows all options] (y): n
    the 0ad stuff is because presently the 0 A.D. package is broken on Tumbleweed (due to boost 1.66) and all unofficial OBS repositories containing 0ad seem to have the same problem, so I took the official src rpm and recompiled it locally. Oddly enough the build went fine and I installed the RPM I had built. As it is not provided by any repos ZYpp is upset by its presence. Back to the git-gui issue, is there a way to stop this attempt to install git-gui?

    Thanks for your time,
    Brenton
    Brenton Horne: Linux enthusiast and writer of ​The Hornery.
    Seven favourite distros
    : Arch, Fedora, Gentoo, openSUSE Tumbleweed and Void.

  2. #2
    Join Date
    Oct 2008
    Location
    Glasgow, Scotland
    Posts
    1,153

    Default Re: How to blacklist a package from being re-installed by ZYpp?

    Just add a lock to git-gui. When the package is not installed:
    Either
    YaST > Softwaare Management > Search Phrase "git-gui"
    Action | Lock
    Or
    Code:
     # zypper al git-gui
    ~Thank you for sharing an interesting problem.
    --
    slàinte mhath,
    rayH

  3. #3
    Join Date
    Oct 2014
    Location
    Rotterdam
    Posts
    151

    Default Re: How to blacklist a package from being re-installed by ZYpp?

    Thanks for the hint on "zypper addlock", I used it to lock tracker (see Trackers choking 3 (!) threads and Strange (high) HDD activity) as I could disable and deinstall it but after every "zypper dup" it was back.

  4. #4
    Join Date
    Mar 2011
    Location
    Sauerland
    Posts
    4,071

    Default AW: How to blacklist a package from being re-installed by ZYpp?

    My local rpmbuild-dir is stored as a Repo :
    Code:
    10 | Sauerland-rpmbuild              | Sauerland-rpmbuild                | Ja        | ( p) Ja         | Ja             |   32      | plaindir | dir:///home/Username/rpmbuild/RPMS
    So all build rpms are automatically in my Software list for Yast/zypper.......

    You can add it via Yast----Software----Software-Repositories.

  5. #5
    Join Date
    Jun 2008
    Location
    Yorkshire
    Posts
    344

    Default Re: How to blacklist a package from being re-installed by ZYpp?

    In yast software management right-click 'git-gui' and choose 'taboo - never instal'.
    Pete

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •