Results 1 to 6 of 6

Thread: How to remove a channel - was added by mistake

  1. How to remove a channel - was added by mistake

    I've been adding channels using mgr-sync add channel [channel name] with no problem, but I added one that I don't want or need. Is there a way to uninstall/remove it ?

    I thought mgr-sync delete channel [ channel name] would work but nope.

    specifically I want to remove the sle11-sdk-sp3-pool-i586 & sle11-sdk-sp3-updates-i586 as we don't have any 32bit linux systems.

    Thanks

  2. Re: How to remove a channel - was added by mistake

    On Wed 04 Feb 2015 03:04:02 PM CST, cisaksen wrote:


    I've been adding channels using *mgr-sync add channel [channel name]*
    with no problem, but I added one that I don't want or need. Is there a
    way to uninstall/remove it ?

    I thought *mgr-sync delete channel [ channel name]* would work but
    nope.

    specifically I want to remove the *sle11-sdk-sp3-pool-i586* &
    *sle11-sdk-sp3-updates-i586* as we don't have any 32bit linux systems.

    Thanks


    Hi
    Have you tried via the web interface or via the mgr-sync delete
    <channel> command instead?

    --
    Cheers Malcolm °¿° LFCS, SUSE Knowledge Partner (Linux Counter #276890)
    openSUSE 13.2 (Harlequin) (x86_64) GNOME 3.14.0 Kernel 3.16.7-7-desktop
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!


  3. #3
    Join Date
    Feb 2015
    Location
    Madrid
    Posts
    3

    Re: How to remove a channel - was added by mistake

    Hi,

    I've have the same problem. I want to delete all the 32 bits channels:

    mgr-sync list channels
    [...]
    [I] SLES11-SP3-Pool for i586 SUSE Linux Enterprise Server 11 SP3 i686 [sles11-sp3-pool-i586]
    [I] SLE11-HAE-SP3-Pool for i586 SUSE Linux Enterprise High Availability Extension 11 SP3 i586 [sle11-hae-sp3-pool-i586]
    [I] SLE11-HAE-SP3-Updates for i586 SUSE Linux Enterprise High Availability Extension 11 SP3 i586 [sle11-hae-sp3-updates-i586]
    [ ] SLE11-SDK-SP1-Pool for i586 SDK-SP3 SUSE Linux Enterprise Software Development Kit 11 SP1 [sle11-sdk-sp1-pool-i586-sdk-sp3]
    [ ] SLE11-SDK-SP1-Updates for i586 SDK-SP3 SUSE Linux Enterprise Software Development Kit 11 SP1 [sle11-sdk-sp1-updates-i586-sdk-sp3]
    [ ] SLE11-SDK-SP2-Core for i586 SDK-SP3 SUSE Linux Enterprise Software Development Kit 11 SP2 [sle11-sdk-sp2-core-i586-sdk-sp3]
    [ ] SLE11-SDK-SP2-Updates for i586 SDK-SP3 SUSE Linux Enterprise Software Development Kit 11 SP2 [sle11-sdk-sp2-updates-i586-sdk-sp3]
    [I] SLE11-SDK-SP3-Pool for i586 SUSE Linux Enterprise Software Development Kit 11 SP3 [sle11-sdk-sp3-pool-i586]
    [I] SLE11-SDK-SP3-Updates for i586 SUSE Linux Enterprise Software Development Kit 11 SP3 [sle11-sdk-sp3-updates-i586]
    [ ] SLE11-Security-Module for i586 SUSE Linux Enterprise Server 11 SP3 i686 [sle11-security-module-i586]
    [I] SLE11-SMT-SP3-Pool for i586 SUSE Linux Enterprise Subscription Management Tool 11 SP3 [sle11-smt-sp3-pool-i586]
    [I] SLE11-SMT-SP3-Updates for i586 SUSE Linux Enterprise Subscription Management Tool 11 SP3 [sle11-smt-sp3-updates-i586]
    [ ] SLE11-SP1-Debuginfo-Pool for i586 SLES-SP3 SUSE Linux Enterprise Server 11 SP1 i586 [sle11-sp1-debuginfo-pool-i586-sles-sp3]
    [ ] SLE11-SP1-Debuginfo-Updates for i586 SLES-SP3 SUSE Linux Enterprise Server 11 SP1 i586 [sle11-sp1-debuginfo-updates-i586-sles-sp3]
    [ ] SLE11-SP2-Debuginfo-Core for i586 SLES-SP3 SUSE Linux Enterprise Server 11 SP2 i486 [sle11-sp2-debuginfo-core-i586-sles-sp3]
    [ ] SLE11-SP2-Debuginfo-Updates for i586 SLES-SP3 SUSE Linux Enterprise Server 11 SP2 i486 [sle11-sp2-debuginfo-updates-i586-sles-sp3]
    [ ] SLE11-SP2-WebYaST-1.3-Pool for i586 SP3 SUSE WebYaST 1.3 [sle11-sp2-webyast-1.3-pool-i586-sp3]
    [ ] SLE11-SP2-WebYaST-1.3-Updates for i586 SP3 SUSE WebYaST 1.3 [sle11-sp2-webyast-1.3-updates-i586-sp3]
    [ ] SLE11-SP3-Debuginfo-Pool for i586 SUSE Linux Enterprise Server 11 SP3 i686 [sle11-sp3-debuginfo-pool-i586]
    [ ] SLE11-SP3-Debuginfo-Updates for i586 SUSE Linux Enterprise Server 11 SP3 i686 [sle11-sp3-debuginfo-updates-i586]
    [ ] SLES11-Extras for i586 SLES-SP3 SUSE Linux Enterprise Server 11 SP1 i586 [sles11-extras-i586-sles-sp3]
    [ ] SLES11-SP1-Pool for i586 SLES-SP3 SUSE Linux Enterprise Server 11 SP1 i586 [sles11-sp1-pool-i586-sles-sp3]
    [ ] SLES11-SP1-Updates for i586 SLES-SP3 SUSE Linux Enterprise Server 11 SP1 i586 [sles11-sp1-updates-i586-sles-sp3]
    [ ] SLES11-SP2-Core for i586 SLES-SP3 SUSE Linux Enterprise Server 11 SP2 i486 [sles11-sp2-core-i586-sles-sp3]
    [ ] SLES11-SP2-Extension-Store for i586 SLES-SP3 SUSE Linux Enterprise Server 11 SP2 i486 [sles11-sp2-extension-store-i586-sles-sp3]
    [ ] SLES11-SP2-SUSE-Manager-Tools i586 SP3 SUSE Manager Tools [sles11-sp2-suse-manager-tools-i586-sp3]
    [ ] SLES11-SP2-Updates for i586 SLES-SP3 SUSE Linux Enterprise Server 11 SP2 i486 [sles11-sp2-updates-i586-sles-sp3]
    [ ] SLES11-SP3-Extension-Store for i586 SUSE Linux Enterprise Server 11 SP3 i686 [sles11-sp3-extension-store-i586]
    [I] SLES11-SP3-SUSE-Manager-Tools i586 SUSE Manager Tools [sles11-sp3-suse-manager-tools-i586]
    [I] SLES11-SP3-Updates for i586 SUSE Linux Enterprise Server 11 SP3 i686 [sles11-sp3-updates-i586]

    But in the web interface this option is disabled ( section Admin -> Setup Wizard -> SUSE Products ) and the "mgr-sync" doesn't work neither:

    # mgr-sync delete "sles11-sp3-pool-i586"
    usage: mgr-sync delete [-h] {credentials} [target [target ...]]
    mgr-sync delete: error: argument delete_target: invalid choice: 'sles11-sp3-pool-i586' (choose from 'credentials')

    # mgr-sync delete "SLES11-SP3-Pool for i586 SUSE Linux Enterprise Server 11 SP3 i686"
    usage: mgr-sync delete [-h] {credentials} [target [target ...]]
    mgr-sync delete: error: argument delete_target: invalid choice: 'SLES11-SP3-Pool for i586 SUSE Linux Enterprise Server 11 SP3 i686' (choose from 'credentials')

    # mgr-sync delete "sle11-sdk-sp3-updates-i586"
    usage: mgr-sync delete [-h] {credentials} [target [target ...]]
    mgr-sync delete: error: argument delete_target: invalid choice: 'sle11-sdk-sp3-updates-i586' (choose from 'credentials')

    It seems that delete option only works for delete SCC credentials:

    # mgr-sync delete
    usage: mgr-sync delete [-h] {credentials} [target [target ...]]
    mgr-sync delete: error: too few arguments


    Any idea??

    Thanks in advance.

  4. Re: How to remove a channel - was added by mistake

    Hi
    That would seem you require to add the credentials. Is the SUSE Manager at version 2.1 and up to date?

    Code:
    find /etc/ -name *cred*
    Has the system been converted to use SCC?
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  5. #5
    Join Date
    Feb 2015
    Location
    Madrid
    Posts
    3

    Re: How to remove a channel - was added by mistake

    Quote Originally Posted by malcolmlewis View Post
    Hi
    That would seem you require to add the credentials. Is the SUSE Manager at version 2.1 and up to date?

    Code:
    find /etc/ -name *cred*
    Has the system been converted to use SCC?
    Hi malcolmlewis,

    Thanks for the quickly answer. Yes, the SUSE Manager is now using SCC and it's version is 2.1 with the last patches:

    Code:
    # find /etc/ -name *cred*
    /etc/sysconfig/rhn/schema-upgrade/susemanager-schema-2.1.50.7-to-susemanager-schema-2.1.50.8/002-remove-not-null-userid-susecreds.sql.postgresql
    /etc/sysconfig/rhn/schema-upgrade/susemanager-schema-2.1.50.7-to-susemanager-schema-2.1.50.8/001-add-scc-credtype.sql.oracle
    /etc/sysconfig/rhn/schema-upgrade/susemanager-schema-2.1.50.7-to-susemanager-schema-2.1.50.8/002-remove-not-null-userid-susecreds.sql.oracle
    /etc/sysconfig/rhn/schema-upgrade/susemanager-schema-2.1.50.7-to-susemanager-schema-2.1.50.8/001-add-scc-credtype.sql.postgresql
    /etc/zypp/credentials.d
    /etc/zypp/credentials.d/NCCcredentials
    According to the Wiki Novell (https://wiki.novell.com/index.php/SU...res2.1/MgrSync), with the "mgr-sync" command you only can delete the SCC credentials that you have configured:

    Code:
    # mgr-sync -h
    usage: mgr-sync [-h] [--version] [-v] [-s]
                    {add,list,enable-scc,refresh,delete} ...
    
    Synchronize SUSE Manager repositories.
    
    optional arguments:
      -h, --help            show this help message and exit
      --version             Print mgr-sync version
      -v, --verbose         Be verbose
      -s, --save-config     Save the configuration to the local dot file.
    
    Subcommands:
      {add,list,enable-scc,refresh,delete}
        list                List channels, SCC organization credentials or
                            products
        add                 add channels, SCC organization credentials or products
        refresh             Refresh product, channel and subscription
        enable-scc          Enable SUSE Customer Center (SCC)
        delete              Delete SCC organization credentials
    Code:
     # mgr-sync list credentials
    Please enter the credentials of SUSE Manager Administrator.
    Login:  "usernameSuseManager"
    Password: "passwordSuseManager"
    Credentials:
    "IDNumberCredentials" (primary)

  6. #6
    Join Date
    Feb 2015
    Location
    Madrid
    Posts
    3

    Re: How to remove a channel - was added by mistake

    Hi again,

    Finally, I've found one way to delete SUSE Channels from the Suse Manager. It seems that this funcionality is not available right now from the web interface.

    First you need to identify what channels you want to delete. Use the "mgr-sync list channels" command to do this. In this example, we want to the delete all the 32 bits channels:

    Code:
    susemanager:~ # mgr-sync list channels
    Available Channels:
    
    Status:
      - [I] - channel is installed
      - [ ] - channel is not installed, but is available
      - [U] - channel is unavailable
    
    [I] SLES11-SP3-Pool for i586 SUSE Linux Enterprise Server 11 SP3 i686 [sles11-sp3-pool-i586]
    	[I] SLES11-SP3-SUSE-Manager-Tools i586 SUSE Manager Tools [sles11-sp3-suse-manager-tools-i586]
    	[I] SLES11-SP3-Updates for i586 SUSE Linux Enterprise Server 11 SP3 i686 [sles11-sp3-updates-i586]
    [I] SLES11-SP3-Pool for x86_64 SUSE Linux Enterprise Server 11 SP3 x86_64 [sles11-sp3-pool-x86_64]
    	[I] SLE11-HAE-SP3-Pool for x86_64 SUSE Linux Enterprise High Availability Extension 11 SP3 x86_64 [sle11-hae-sp3-pool-x86_64]
    	[I] SLE11-HAE-SP3-Updates for x86_64 SUSE Linux Enterprise High Availability Extension 11 SP3 x86_64 [sle11-hae-sp3-updates-x86_64]
    	[ ] SLE11-SDK-SP1-Pool for x86_64 SDK-SP3 SUSE Linux Enterprise Software Development Kit 11 SP1 [sle11-sdk-sp1-pool-x86_64-sdk-sp3]
    	[ ] SLE11-SDK-SP1-Updates for x86_64 SDK-SP3 SUSE Linux Enterprise Software Development Kit 11 SP1 [sle11-sdk-sp1-updates-x86_64-sdk-sp3]
    	[ ] SLE11-SDK-SP2-Core for x86_64 SDK-SP3 SUSE Linux Enterprise Software Development Kit 11 SP2 [sle11-sdk-sp2-core-x86_64-sdk-sp3]
    	[ ] SLE11-SDK-SP2-Updates for x86_64 SDK-SP3 SUSE Linux Enterprise Software Development Kit 11 SP2 [sle11-sdk-sp2-updates-x86_64-sdk-sp3]
    	[I] SLE11-SDK-SP3-Pool for x86_64 SUSE Linux Enterprise Software Development Kit 11 SP3 [sle11-sdk-sp3-pool-x86_64]
    	[I] SLE11-SDK-SP3-Updates for x86_64 SUSE Linux Enterprise Software Development Kit 11 SP3 [sle11-sdk-sp3-updates-x86_64]
    	[ ] SLE11-Security-Module for x86_64 SUSE Linux Enterprise Server 11 SP3 x86_64 [sle11-security-module-x86_64]
    	[I] SLE11-SMT-SP3-Pool for x86_64 SUSE Linux Enterprise Subscription Management Tool 11 SP3 [sle11-smt-sp3-pool-x86_64]
    	[I] SLE11-SMT-SP3-Updates for x86_64 SUSE Linux Enterprise Subscription Management Tool 11 SP3 [sle11-smt-sp3-updates-x86_64]
    	[ ] SLES11-SP2-SUSE-Manager-Tools x86_64 SP3 SUSE Manager Tools [sles11-sp2-suse-manager-tools-x86_64-sp3]
    	[ ] SLES11-SP2-Updates for x86_64 SLES-SP3 SUSE Linux Enterprise Server 11 SP2 x86_64 [sles11-sp2-updates-x86_64-sles-sp3]
    	[ ] SLES11-SP3-Extension-Store for x86_64 SUSE Linux Enterprise Server 11 SP3 x86_64 [sles11-sp3-extension-store-x86_64]
    	[I] SLES11-SP3-SUSE-Manager-Tools x86_64 SUSE Manager Tools [sles11-sp3-suse-manager-tools-x86_64]
    	[I] SLES11-SP3-Updates for x86_64 SUSE Linux Enterprise Server 11 SP3 x86_64 [sles11-sp3-updates-x86_64]
    	[I] SLES11-SP3-Pool for x86_64 Server 2.1 SUSE Linux Enterprise Server 11 SP3 x86_64 [sles11-sp3-pool-x86_64-server-2.1]
    	[I] SLES11-SP3-Updates for x86_64 Server 2.1 SUSE Linux Enterprise Server 11 SP3 x86_64 [sles11-sp3-updates-x86_64-server-2.1]
    	[I] SUSE-Manager-Server-2.1-Updates for x86_64 SUSE Manager Server 2.1 x86_64 [suse-manager-server-2.1-updates-x86_64]
    First we need to delete all the subchannels from the parent channel that we want to delete. In this example, we want to delete the parent channel "SLES11-SP3-Pool for i586 SUSE Linux Enterprise Server 11 SP3 i686 [sles11-sp3-pool-i586]".

    So first, we delete its subchannles, like "SLES11-SP3-SUSE-Manager-Tools i586 SUSE Manager Tools [sles11-sp3-suse-manager-tools-i586]". To do this, you need to use the command "spacewalk-remove-channel":

    Code:
    susemanager:~ # spacewalk-remove-channel -c sles11-sp3-suse-manager-tools-i586
    Deleting package metadata (53):
                  	________________________________________
    Removing:     	######################################## - complete
    Do this with all subchannels and finally with the parent channel.

Bookmarks

Posting Permissions

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