web-dev-qa-db-ja.com

xubuntu-desktopを削除する方法は?

数日前、Xubuntuを通常のUbuntuシステムの上にインストールしました。

Sudo apt-get install xubuntu-desktop

Ubuntu 2Dの方が好きだと気づくまで、私はXubuntuで長い間遊んでいませんでした。ここで私の問題は、Xubuntuとその依存関係のすべて、およびThunarやAbiwordなどの推奨パッケージをアンインストールする方法です。

今のところ、私はちょうど実行します:

Sudo apt-get remove xubuntu-*

しかし、私はまだXubuntuから多くを残しています。することでいいだろう

apt-get remove xubuntu-desktop

メタパッケージとともにインストールされたパッケージもすべて削除されましたが、そうではありません。

37
buzu

これを試すことができます-

Sudo apt-get remove abiword abiword-common abiword-plugin-grammar abiword-plugin-mathview bison blueman brltty-x11 catfish elementary-icon-theme exo-utils flex gigolo gimp gimp-data gmusicbrowser gnome-icon-theme-full gnome-system-tools gnome-time-admin gnumeric gnumeric-common gnumeric-doc gstreamer0.10-gnomevfs gthumb gthumb-data gtk2-engines-pixbuf gtk2-engines-xfce indicator-application-gtk2 indicator-messages-gtk2 indicator-sound-gtk2 indicator-status-provider-Pidgin leafpad libabiword-2.8 libaiksaurus-1.2-0c2a libaiksaurus-1.2-data libaiksaurusgtk-1.2-0c2a libao-common libao4 libaudio-scrobbler-Perl libbabl-0.0-0 libclutter-1.0-0 libclutter-1.0-common libclutter-gtk-1.0-0 libcogl-common libcogl5 libconfig-inifiles-Perl libencode-locale-Perl libept1 libexo-1-0 libexo-common libfile-listing-Perl libfont-afm-Perl libgarcon-1-0 libgarcon-common libgdome2-0 libgdome2-cpp-smart0c2a libgegl-0.0-0 libgimp2.0 libglade2-0 libgnomevfs2-extra libgoffice-0.8-8 libgoffice-0.8-8-common libgsf-1-114 libgsf-1-common libgstreamer-Perl libgtk2-notify-Perl libgtk2-trayicon-Perl libgtkmathview0c2a libhtml-form-Perl libhtml-format-Perl libhtml-parser-Perl libhtml-tagset-Perl libhtml-tree-Perl libhttp-cookies-Perl libhttp-daemon-Perl libhttp-date-Perl libhttp-message-Perl libhttp-negotiate-Perl libid3tag0 libido-0.1-0 libilmbase6 libio-socket-ssl-Perl libjpeg-progs libkeybinder0 liblink-grammar4 libloudmouth1-0 liblwp-mediatypes-Perl liblwp-protocol-https-Perl libmad0 libmailtools-Perl libnet-dbus-Perl libnet-http-Perl libnet-ssleay-Perl liboobs-1-5 libopenexr6 libotr2 libots0 libpolkit-gtk-1-0 libsexy2 libtagc0 libthunarx-2-0 libtie-ixhash-Perl libtimedate-Perl libtumbler-1-0 liburi-Perl libwv-1.2-3 libwww-Perl libwww-robotrules-Perl libxfce4ui-1-0 libxfce4util-bin libxfce4util-common libxfce4util4 libxfcegui4-4 libxfconf-0-2 libxml-parser-Perl libxml-twig-Perl libxml-xpath-Perl libxss1 lightdm-gtk-greeter link-grammar-dictionaries-en m4 mpg321 murrine-themes orage Parole pastebinit Pidgin pidgin-data Pidgin-libnotify Pidgin-microblog Pidgin-otr plymouth-theme-xubuntu-logo plymouth-theme-xubuntu-text python-configobj python-glade2 quadrapassel ristretto screensaver-default-images synaptic system-tools-backends tango-icon-theme tango-icon-theme-common tcl8.5 thunar thunar-archive-plugin thunar-data thunar-media-tags-plugin thunar-volman ttf-droid ttf-lyx tumbler tumbler-common xchat xchat-common xfburn xfce-keyboard-shortcuts xfce4-appfinder xfce4-cpugraph-plugin xfce4-dict xfce4-fsguard-plugin xfce4-indicator-plugin xfce4-mailwatch-plugin xfce4-mixer xfce4-mount-plugin xfce4-netload-plugin xfce4-notes xfce4-notes-plugin xfce4-notifyd xfce4-panel xfce4-places-plugin xfce4-power-manager xfce4-power-manager-data xfce4-quicklauncher-plugin xfce4-screenshooter xfce4-session xfce4-settings xfce4-smartbookmark-plugin xfce4-systemload-plugin xfce4-taskmanager xfce4-terminal xfce4-utils xfce4-verve-plugin xfce4-volumed xfce4-weather-plugin xfconf xfdesktop4 xfdesktop4-data xfwm4 xfwm4-themes xscreensaver xscreensaver-data xscreensaver-gl xubuntu-artwork xubuntu-default-settings xubuntu-desktop xubuntu-docs xubuntu-icon-theme xubuntu-wallpapers && Sudo apt-get install ubuntu-desktop

出典: http://www.psychocats.net/ubuntu/puregnome

Update:(X)Ubuntu 13.10で上記のコードはパッケージlibabiword-2.8およびttf-droidでエラーを生成する可能性があるため、実際にこれを実行する必要があります:

Sudo apt-get remove abiword abiword-common abiword-plugin-grammar abiword-plugin-mathview alacarte bison blueman brltty-x11 catfish espeak exo-utils flex fonts-droid fonts-lyx gigolo gmusicbrowser gnome-system-tools gnome-time-admin gstreamer0.10-gnomevfs gthumb gthumb-data gtk2-engines-pixbuf indicator-application-gtk2 indicator-sound-gtk2 leafpad libabiword-3.0 libbison-dev libdigest-crc-Perl libexo-1-0 libexo-common libexo-helpers libfl-dev libgarcon-1-0 libgarcon-common libgdome2-0 libgdome2-cpp-smart0c2a libglade2-0 libgnomevfs2-0 libgnomevfs2-common libgnomevfs2-extra libgsf-1-114 libgsf-1-common libgstreamer-Perl libgtk2-notify-Perl libgtk2-trayicon-Perl libgtkmathview0c2a libgtkspell0 libido-0.1-0 libindicate-gtk3 libintl-Perl libjpeg-progs libjpeg-turbo-progs libkeybinder0 liblink-grammar4 libloudmouth1-0 libnet-dbus-Perl liboobs-1-5 libotr2 libots0 librarian0 libsexy2 libtagc0 libthunarx-2-0 libtidy-0.99-0 libtie-ixhash-Perl libtumbler-1-0 libunique-1.0-0 libvte-common libvte9 libwv-1.2-4 libxfce4ui-1-0 libxfce4ui-utils libxfce4util-bin libxfce4util-common libxfce4util6 libxfcegui4-4 libxfconf-0-2 libxml-parser-Perl libxml-twig-Perl libxml-xpath-Perl lightdm-gtk-greeter link-grammar-dictionaries-en m4 orage Parole pastebinit pavucontrol Pidgin pidgin-data Pidgin-libnotify Pidgin-microblog Pidgin-otr plymouth-theme-xubuntu-logo plymouth-theme-xubuntu-text python-configobj rarian-compat ristretto screensaver-default-images scrollkeeper shimmer-themes system-tools-backends tcl8.5 thunar thunar-archive-plugin thunar-data thunar-media-tags-plugin thunar-volman tumbler tumbler-common xbrlapi xchat xchat-common xfburn xfce-keyboard-shortcuts xfce4-appfinder xfce4-cpugraph-plugin xfce4-dict xfce4-indicator-plugin xfce4-mailwatch-plugin xfce4-netload-plugin xfce4-notes xfce4-notes-plugin xfce4-notifyd xfce4-panel xfce4-places-plugin xfce4-power-manager xfce4-power-manager-data xfce4-quicklauncher-plugin xfce4-screenshooter xfce4-session xfce4-settings xfce4-systemload-plugin xfce4-taskmanager xfce4-terminal xfce4-verve-plugin xfce4-volumed xfce4-weather-plugin xfce4-xkb-plugin xfconf xfdesktop4 xfdesktop4-data xfwm4 xscreensaver xscreensaver-data xscreensaver-gl xubuntu-artwork xubuntu-default-settings xubuntu-desktop xubuntu-docs xubuntu-icon-theme xubuntu-wallpapers && Sudo apt-get install ubuntu-desktop

これは最初のコードと同じですが、2.8ではなくlibabiword-3.0を使用し、ttf-droidを使用しません。

21
ManyRoads

次のコマンドは、XubuntuとXFCEの95%を削除します-言及されている他のコマンドの代わりに、パッケージの50%... 60%...のみを削除します。

Sudo apt-get autoremove --purge xubuntu-* && Sudo apt-get autoremove --purge xfce*

もっと過激になりたいなら...次のコマンドを実行できます。これにより、xubuntu/xfceのほぼすべてが削除されます。

Sudo apt-get autoremove --purge $( dpkg-query -l *xubuntu* | grep ii | tr -s " " | cut -d" " -f2; dpkg-query -l *xfce* | grep 'ii' | tr -s " " | cut -d" " -f2 )
31
PetronioPadilha

削除するパッケージのリストを確認します。

$ apt-cache depends xubuntu-desktop | awk '/^\s+Depends: /{print $2;}' | column
alsa-base                       inputattach                     software-properties-gtk         xfce4-notifyd
alsa-utils                      language-selector-gnome         thunar                          xfce4-panel
anacron                         libasound2-plugins              thunar-volman                   xfce4-session
bc                              libpam-systemd                  tumbler                         xfce4-settings
ca-certificates                 libsasl2-modules                ubuntu-drivers-common           xfdesktop4
dmz-cursor-theme                libxp6                          ubuntu-extras-keyring           xfwm4
doc-base                        lightdm                         unzip                           xkb-data
fonts-dejavu-core               lightdm-gtk-greeter             update-manager                  xorg
fonts-freefont-ttf              memtest86+                      wireless-tools                  xterm
foomatic-db-compressed-ppds     openprinting-ppds               wpasupplicant                   xubuntu-artwork
genisoimage                     pm-utils                        xdg-user-dirs                   xubuntu-default-settings
ghostscript-x                   printer-driver-pnm2ppa          xdg-user-dirs-gtk               zenity
gtk2-engines-pixbuf             rfkill                          xfce4-appfinder                 Zip

次に、上記をファイルに書き込んで編集するか、すべてをアンインストールしてからUbuntuに必要なものを再インストールします。

apt-cache depends xubuntu-desktop \
    | awk '/^\s+Depends: /{print $2;}' \
    | Sudo xargs apt-get purge -y`
Sudo apt-get install ubuntu-desktop
6
Dan Garthwaite

これはUbuntu 12.04で動作しますこれをすべてターミナルにコピーします

Sudo apt-get remove abiword abiword-common abiword-plugin-grammar abiword-plugin-mathview alacarte bison blueman brltty-x11 catfish docbook-xml exo-utils flex fonts-droid gigolo gimp gimp-data gmusicbrowser gnome-desktop-data gnome-system-tools gnome-time-admin gnumeric gnumeric-common gnumeric-doc gstreamer0.10-gnomevfs gthumb gthumb-data gtk2-engines-pixbuf indicator-application-gtk2 indicator-messages-gtk2 indicator-sound-gtk2 indicator-status-provider-Pidgin leafpad libabiword-2.9 libao-common libao4 libaudio-scrobbler-Perl libbabl-0.0-0 libbison-dev libcolamd2.7.1 libconfig-inifiles-Perl libdigest-crc-Perl libencode-locale-Perl libept1.4.12 libexo-1-0 libexo-common libexo-helpers libfile-listing-Perl libfl-dev libfont-afm-Perl libgarcon-1-0 libgarcon-common libgdome2-0 libgdome2-cpp-smart0c2a libgegl-0.0-0 libgimp2.0 libglade2-0 libgnomevfs2-0 libgnomevfs2-common libgnomevfs2-extra libgoffice-0.8-8 libgoffice-0.8-8-common libgsf-1-114 libgsf-1-common libgstreamer-Perl libgtk2-notify-Perl libgtk2-trayicon-Perl libgtkmathview0c2a libgtkspell0 libhtml-form-Perl libhtml-format-Perl libhtml-parser-Perl libhtml-tagset-Perl libhtml-tree-Perl libhttp-cookies-Perl libhttp-daemon-Perl libhttp-date-Perl libhttp-message-Perl libhttp-negotiate-Perl libid3tag0 libido-0.1-0 libilmbase6 libio-socket-inet6-Perl libio-socket-ssl-Perl libjavascriptcoregtk-1.0-0 libjpeg-progs libjpeg-turbo-progs libkeybinder0 liblaunchpad-integration1 liblink-grammar4 libloudmouth1-0 liblwp-mediatypes-Perl liblwp-protocol-https-Perl libmad0 libmailtools-Perl libnet-dbus-Perl libnet-http-Perl libnet-ssleay-Perl liboobs-1-5 libopenexr6 libotr2 libots0 librarian0 libsexy2 libsocket6-Perl libtagc0 libthunarx-2-0 libtidy-0.99-0 libtie-ixhash-Perl libtimedate-Perl libtumbler-1-0 libunique-1.0-0 liburi-Perl libvte-common libvte9 libwebkitgtk-1.0-0 libwebkitgtk-1.0-common libwv-1.2-4 libwww-Perl libwww-robotrules-Perl libxfce4ui-1-0 libxfce4util-bin libxfce4util-common libxfce4util4 libxfcegui4-4 libxfconf-0-2 libxml-parser-Perl libxml-twig-Perl libxml-xpath-Perl libxss1 lightdm-gtk-greeter link-grammar-dictionaries-en linux-headers-3.2.0-24 linux-headers-3.2.0-24-generic linux-headers-generic lp-solve m4 mpg321 orage Parole pastebinit pavucontrol Pidgin pidgin-data Pidgin-libnotify Pidgin-microblog Pidgin-otr plymouth-theme-xubuntu-logo plymouth-theme-xubuntu-text python-configobj python-glade2 python-gmenu rarian-compat ristretto screensaver-default-images sgml-data shimmer-themes synaptic system-tools-backends tcl8.5 thunar thunar-archive-plugin thunar-data thunar-media-tags-plugin thunar-volman ttf-droid ttf-lyx tumbler tumbler-common xchat xchat-common xfburn xfce-keyboard-shortcuts xfce4-appfinder xfce4-cpugraph-plugin xfce4-datetime-plugin xfce4-dict xfce4-indicator-plugin xfce4-mailwatch-plugin xfce4-netload-plugin xfce4-notes xfce4-notes-plugin xfce4-notifyd xfce4-panel xfce4-places-plugin xfce4-power-manager xfce4-power-manager-data xfce4-quicklauncher-plugin xfce4-screenshooter xfce4-session xfce4-settings xfce4-systemload-plugin xfce4-taskmanager xfce4-terminal xfce4-utils xfce4-verve-plugin xfce4-volumed xfce4-weather-plugin xfce4-xkb-plugin xfconf xfdesktop4 xfdesktop4-data xfwm4 xscreensaver xscreensaver-data xscreensaver-gl xubuntu-artwork xubuntu-default-settings xubuntu-desktop xubuntu-docs xubuntu-icon-theme xubuntu-wallpapers && Sudo apt-get install ubuntu-desktop && Sudo /usr/lib/lightdm/lightdm-set-defaults -g unity-greeter
1
T5R

Libotr2は有効なパッケージではないため、Ubuntu 14.04の場合、コマンドを次のように更新する必要があります。 libotr5に変更する必要があります。更新されたコードは次のとおりです。 ubuntu-desktopを再インストールします。

Sudo apt-get remove abiword abiword-common abiword-plugin-grammar abiword-plugin-mathview alacarte bison blueman brltty-x11 catfish espeak exo-utils flex fonts-droid fonts-lyx gigolo gmusicbrowser gnome-system-tools gnome-time-admin gstreamer0.10-gnomevfs gthumb gthumb-data gtk2-engines-pixbuf indicator-application-gtk2 indicator-sound-gtk2 leafpad libabiword-3.0 libbison-dev libdigest-crc-Perl libexo-1-0 libexo-common libexo-helpers libfl-dev libgarcon-1-0 libgarcon-common libgdome2-0 libgdome2-cpp-smart0c2a libglade2-0 libgnomevfs2-0 libgnomevfs2-common libgnomevfs2-extra libgsf-1-114 libgsf-1-common libgstreamer-Perl libgtk2-notify-Perl libgtk2-trayicon-Perl libgtkmathview0c2a libgtkspell0 libido-0.1-0 libindicate-gtk3 libintl-Perl libjpeg-progs libjpeg-turbo-progs libkeybinder0 liblink-grammar4 libloudmouth1-0 libnet-dbus-Perl liboobs-1-5 libotr5 libots0 librarian0 libsexy2 libtagc0 libthunarx-2-0 libtidy-0.99-0 libtie-ixhash-Perl libtumbler-1-0 libunique-1.0-0 libvte-common libvte9 libwv-1.2-4 libxfce4ui-1-0 libxfce4ui-utils libxfce4util-bin libxfce4util-common libxfce4util6 libxfcegui4-4 libxfconf-0-2 libxml-parser-Perl libxml-twig-Perl libxml-xpath-Perl lightdm-gtk-greeter link-grammar-dictionaries-en m4 orage Parole pastebinit pavucontrol Pidgin pidgin-data Pidgin-libnotify Pidgin-microblog Pidgin-otr plymouth-theme-xubuntu-logo plymouth-theme-xubuntu-text python-configobj rarian-compat ristretto screensaver-default-images scrollkeeper shimmer-themes system-tools-backends tcl8.5 thunar thunar-archive-plugin thunar-data thunar-media-tags-plugin thunar-volman tumbler tumbler-common xbrlapi xchat xchat-common xfburn xfce-keyboard-shortcuts xfce4-appfinder xfce4-cpugraph-plugin xfce4-dict xfce4-indicator-plugin xfce4-mailwatch-plugin xfce4-netload-plugin xfce4-notes xfce4-notes-plugin xfce4-notifyd xfce4-panel xfce4-places-plugin xfce4-power-manager xfce4-power-manager-data xfce4-quicklauncher-plugin xfce4-screenshooter xfce4-session xfce4-settings xfce4-systemload-plugin xfce4-taskmanager xfce4-terminal xfce4-verve-plugin xfce4-volumed xfce4-weather-plugin xfce4-xkb-plugin xfconf xfdesktop4 xfdesktop4-data xfwm4 xscreensaver xscreensaver-data xscreensaver-gl xubuntu-artwork xubuntu-default-settings xubuntu-desktop xubuntu-docs xubuntu-icon-theme xubuntu-wallpapers && Sudo apt-get install ubuntu-desktop
0
user292112