How do you remove xserver in Linux / UNIX using apt-get command?
Here is the tutorial to learn how to uninstall xserver with apt-get command.
Step 1: Open a terminal with 'su' access and enter the command as shown below.
apt-get remove xserver -y
Step 2: The command reads the package lists and proceeds with the uninstallation.
Result of the Command Execution shown below:
root@hiox:~ apt-get remove xserver -y
Reading package lists...
Building dependency tree...
Reading state information...
Package xserver is not installed, so not removed
The following packages were automatically installed and are no longer required:
libsm dev python3 minimal libjaxp1.3 java libjargs java libzbar0 rpm2cpio
xsltproc libchewing3 data libice dev fakeroot libxrandr dev libexpat1 dev
libiw dev libxerces2 java debhelper libxdamage dev pkg config
libpthread stubs0 scim bridge client gtk libsvga1 libxfixes dev g++ 4.4
libibus1 libzend framework php libnspr4 dev ibus gtk libxcb render util0 dev
scim modules table language pack zh hant base x11proto xinerama dev
x11proto render dev libxi dev java common librpmio0 librpm0 libmagick++2
rpm common po debconf icedtea 6 jre cacao libpixman 1 dev libsqlite0
libdirectfb extra java wrappers default jre headless scim znc tcl g++
libfontconfig1 dev libscim8c2a intltool debian openjdk 6 jre lib
firefox locale zh hans firefox locale zh hant python3.1 libnss3 dev
x11proto kb dev x11proto randr dev libxinerama dev gcc 4.4
openjdk 6 jre headless xtrans dev libatk1.0 dev libchewing3 libelf1 gettext
blt x11proto input dev x11proto fixes dev gcc cvs linux headers 2.6.32 74
libggi2 linux headers 2.6.32 74 generic zend framework bin libgii1
ttf arphic uming x11proto xext dev tzdata java libxext dev xfonts wqy
scim gtk2 immodule znc perl x11proto damage dev
language support fonts zh hans language support fonts zh hant
linux headers generic manpages libnotify dev libglib2.0 dev
libzookeeper java zlib1g dev libcairo2 dev im switch libzzip 0 13
libpango1.0 dev libfreetype6 dev build essential libxau dev dpkg dev rpm
libgii1 target x librpmbuild0 scim bridge agent tcl8.5 pinyin database
python3 ttf arphic bsmi00lp xz utils ibus pinyin db open phrase
language pack zh hans base python3.1 minimal libc ares2 libc6 dev tk8.5
liblua5.1 0 libxcomposite dev libxcb render0 dev libxrender dev
ttf arphic gbsn00lp ca certificates java html2text libxft dev libx11 dev
ttf wqy zenhei libqt3 mt x11proto composite dev linux libc dev patch
manpages dev ttf arphic ukai language pack zh hans language pack zh hant
info libggi target x libdbus 1 dev libc dev bin libxcb1 dev libgtk2.0 dev
libmail sendmail perl libdirectfb dev binutils libjpeg62 dev znc extra
libdbus glib 1 dev libsys hostname long perl liblog4j1.2 java openbsd inetd
libjline java libnet1 x11proto core dev gnome doc utils libxdmcp dev
libpthread stubs0 dev libsysfs dev talkd libxcursor dev scim modules socket
libstdc++6 4.4 dev libpng12 dev
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
root@hiox:~