[MacPorts] #18984: uninstall wildcard *
#18984: uninstall wildcard * ------------------------------------+--------------------------------------- Reporter: cerieljacobs@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: MacPorts 1.8.0 Component: ports | Version: 1.8.0 Keywords: uninstall wildcard * | Port: ------------------------------------+--------------------------------------- With a port uninstall command, it would be nice if a wildcard could be specified, like: {{{ port uninstall xorg-* }}} Which would uninstall all installed ports starting with xorg- -- Ticket URL: <http://trac.macports.org/ticket/18984> MacPorts <http://www.macports.org/> Ports system for Mac OS
#18984: uninstall wildcard * ------------------------------------+--------------------------------------- Reporter: cerieljacobs@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: MacPorts 1.8.0 Component: ports | Version: 1.8.0 Keywords: uninstall wildcard * | Port: ------------------------------------+--------------------------------------- Comment(by perry@…): There is already a way to accomplish this, though not as obvious ;). {{{port uninstall installed and name:xorg-}}} -- Ticket URL: <http://trac.macports.org/ticket/18984#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#18984: uninstall wildcard * ------------------------------------+--------------------------------------- Reporter: cerieljacobs@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: MacPorts Future Component: ports | Version: 1.8.0 Keywords: uninstall wildcard * | Port: ------------------------------------+--------------------------------------- Changes (by blb@…): * milestone: MacPorts 1.8.0 => MacPorts Future -- Ticket URL: <http://trac.macports.org/ticket/18984#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#18984: uninstall wildcard * ------------------------------------+--------------------------------------- Reporter: cerieljacobs@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: MacPorts Future Component: ports | Version: 1.8.0 Keywords: uninstall wildcard * | Port: ------------------------------------+--------------------------------------- Changes (by raimue@…): * cc: raimue@… (added) Comment: What kind of errors do you see when using `port uninstall xorg-*`? -- Ticket URL: <http://trac.macports.org/ticket/18984#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#18984: uninstall wildcard * ------------------------------------+--------------------------------------- Reporter: cerieljacobs@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: MacPorts Future Component: ports | Version: 1.8.0 Keywords: uninstall wildcard * | Port: ------------------------------------+--------------------------------------- Comment(by cerieljacobs@…): $ sudo /opt/local/bin/port uninstall xorg* Error: port uninstall failed: Registry error: xorg not registered as installed. -- Ticket URL: <http://trac.macports.org/ticket/18984#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#18984: uninstall wildcard * ------------------------------------+--------------------------------------- Reporter: cerieljacobs@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: MacPorts Future Component: ports | Version: 1.8.0 Keywords: uninstall wildcard * | Port: ------------------------------------+--------------------------------------- Comment(by cerieljacobs@…): {{{ $ sudo /opt/local/bin/port uninstall xorg* Error: port uninstall failed: Registry error: xorg not registered as installed. }}} -- Ticket URL: <http://trac.macports.org/ticket/18984#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#18984: uninstall wildcard * ------------------------------------+--------------------------------------- Reporter: cerieljacobs@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: MacPorts Future Component: ports | Version: 1.8.0 Keywords: uninstall wildcard * | Port: ------------------------------------+--------------------------------------- Comment(by jmr@…): You probably just need to escape the asterisk so your shell doesn't eat it: `sudo port uninstall xorg\*` -- Ticket URL: <http://trac.macports.org/ticket/18984#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#18984: uninstall wildcard * ------------------------------------+--------------------------------------- Reporter: cerieljacobs@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: MacPorts Future Component: ports | Version: 1.8.0 Keywords: uninstall wildcard * | Port: ------------------------------------+--------------------------------------- Comment(by raimue@…): I can confirm the issue, passing an uninstalled portname leads to this error message. `port uninstall` should silently ignore uninstalled ports. For now, use the workaround provided by perry [comment:1 above]. -- Ticket URL: <http://trac.macports.org/ticket/18984#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#18984: uninstall wildcard * ------------------------------------+--------------------------------------- Reporter: cerieljacobs@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: MacPorts Future Component: base | Version: 1.8.0 Keywords: uninstall wildcard * | Port: ------------------------------------+--------------------------------------- Changes (by jmr@…): * component: ports => base -- Ticket URL: <http://trac.macports.org/ticket/18984#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#18984: uninstall wildcard * -------------------------------------+-------------------------------------- Reporter: cerieljacobs@… | Owner: macports-tickets@… Type: enhancement | Status: closed Priority: Normal | Milestone: MacPorts 1.8.0 Component: base | Version: 1.8.0 Resolution: fixed | Keywords: uninstall wildcard * Port: | -------------------------------------+-------------------------------------- Changes (by jmr@…): * cc: jmr@… (added) * status: new => closed * resolution: => fixed * milestone: MacPorts Future => MacPorts 1.8.0 Comment: r53709 -- Ticket URL: <http://trac.macports.org/ticket/18984#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts