Por exemplo, se você quiser listar todas as alternativas para nano
run:
apt-cache showpkg nano
para determinar que ele fornece o pacote virtual editor
.
Em seguida, execute:
aptitude search "?provides(editor)" | grep -v ":"
para listar todas as alternativas
p deutex - composition tool for doom-style WAD files
p edbrowse - /bin/ed-alike webbrowser written in C
p emacs24 - GNU Emacs editor (with GTK+ GUI support)
p emacs24-lucid - GNU Emacs editor (with Lucid GUI support)
p emacs24-nox - GNU Emacs editor (without GUI support)
p fte-console - Text editor for programmers - console edit
p fte-terminal - Text editor for programmers - version for
p fte-xwindow - Text editor for programmers - X Window Sys
p jed - editor for programmers (textmode version)
p jove - Jonathan's Own Version of Emacs - a compac
p jupp - user friendly full screen text editor
p le - Text editor with block and binary operatio
p ledit - line editor for interactive programs
p levee - very small vi clone
p mg - microscopic GNU Emacs-style editor
i nano - small, friendly text editor inspired by Pi
p nano-tiny - small, friendly text editor inspired by Pi
p ne - easy-to-use and powerful text editor
p pluma - official text editor of the MATE desktop e
p rlfe - Front-end using readline to "cook" input l
p rlwrap - readline feature command line wrapper
p scite - Lightweight GTK-based Programming Editor
p vigor - nvi with the evil paperclip
p vile - VI Like Emacs - vi work-alike
i vim - Vi IMproved - enhanced vi editor
p vim-athena - Vi IMproved - enhanced vi editor - with At
p vim-gnome - Vi IMproved - enhanced vi editor - with GN
p vim-gtk - Vi IMproved - enhanced vi editor - with GT
i vim-nox - Vi IMproved - enhanced vi editor - with sc
i vim-tiny - Vi IMproved - enhanced vi editor - compact
p xjed - editor for programmers (x11 version)
p xul-ext-password-editor - edit password manager entries in Mozilla a
p xvile - VI Like Emacs - vi work-alike (X11)
grep -v ":"
está aqui para filtrar pacotes específicos da arquitetura.
Tenha também cuidado, pois alguns pacotes fornecem vários pacotes virtuais pelo exemplo openbox
fornece x-window-manager
e x-session-manager
. Então, se você quiser substituir um determinado pacote, o pacote de substituição deve fornecer todos os pacotes virtuais do pacote original.