Next: , Up: Usage   [Contents]

2.1.1 cpt-alternatives

You can list and swap to alternatives using cpt-alternatives, or cpt a for short. When run without alternatives, it will list alternatives. It can read from standard input if - is given as an argument.


List alternatives

$ cpt-alternatives
ncurses /usr/bin/clear
ncurses /usr/bin/reset

Swap to clear from ncurses.

$ cpt-alternatives ncurses /usr/bin/clear
-> Swapping '/usr/bin/clear' from 'busybox' to 'ncurses'

Swap in bulk (all of sbase).

$ cpt a | grep ^sbase | cpt a -