How do you remove xz utils in Linux / UNIX using apt-get command?
Here is the tutorial to learn how to uninstall xz utils with apt-get command.
Step 1: Open a terminal with 'su' access and enter the command as shown below.
apt-get remove xz utils -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 xz utils -y
Reading package lists...
Building dependency tree...
Reading state information...
The following packages were automatically installed and are no longer required:
libatk1.0 0 libpcsclite1 python3 minimal libjaxp1.3 java gconf2 common
libgtk2.0 common libgsf 1 common libjargs java libzbar0 rpm2cpio
libchewing3 data libxcomposite1 fakeroot libxerces2 java xfonts encodings
libfile copy recursive perl libatk1.0 data scim bridge client gtk libsvga1
update inetd unzip libibus1 libzend framework php xterm ibus gtk
scim modules table language pack zh hant base libpcap0.8 java common
librpmio0 librpm0 libmagick++2 rpm common icedtea 6 jre cacao libsqlite0
java wrappers default jre headless libcairo2 scim znc tcl xfonts utils
libscim8c2a openjdk 6 jre lib firefox locale zh hans firefox locale zh hant
libthai data python3.1 gcc 4.4 cpu checker librsvg2 common libdatrie1
openjdk 6 jre headless konsole libchewing3 libxfont1 libindicator0
libgconf2 4 libelf1 libgtkspell0 xbitmaps libpango1.0 common blt
libpixman 1 0 gcc linux headers 2.6.32 74 libggi2 libdbusmenu glib1
linux headers 2.6.32 74 generic zend framework bin libgii1 ttf arphic uming
libcroco3 tzdata java libdbusmenu gtk1 libgsf 1 114 xfonts wqy
scim gtk2 immodule znc perl language support fonts zh hans
language support fonts zh hant libthai0 linux headers generic manpages
libidl0 libglade2 0 libzookeeper java im switch libzzip 0 13 tcl rpm
libgii1 target x librpmbuild0 x ttcidfont conf scim bridge agent tcl8.4
tcl8.5 pinyin database python3 ttf arphic bsmi00lp libappindicator0
ibus pinyin db open phrase language pack zh hans base python3.1 minimal
libc ares2 libc6 dev liborbit2 tk8.4 tk8.5 liblua5.1 0 librsvg2 2
ttf arphic gbsn00lp ca certificates java libpango1.0 0 ttf wqy zenhei
linux libc dev patch manpages dev ttf arphic ukai language pack zh hans
language pack zh hant libxcb render0 libgtk2.0 bin libggi target x
libc dev bin binutils znc extra libjson glib 1.0 0 liblog4j1.2 java
libxcb render util0 openbsd inetd libjline java libxrandr2
indicator application libnet1 libgtk2.0 0 talkd scim modules socket
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
xz utils
0 upgraded, 0 newly installed, 1 to remove and 1 not upgraded.
After this operation, 487kB disk space will be freed.
(Reading database ... (Reading database ... 5%(Reading database ... 10%(Reading database ... 15%(Reading database ... 20%(Reading database ... 25%(Reading database ... 30%(Reading database ... 35%(Reading database ... 40%(Reading database ... 45%(Reading database ... 50%(Reading database ... 55%(Reading database ... 60%(Reading database ... 65%(Reading database ... 70%(Reading database ... 75%(Reading database ... 80%(Reading database ... 85%(Reading database ... 90%(Reading database ... 95%(Reading database ... 100%(Reading database ... 77190 files and directories currently installed.)
Removing xz utils ...
Processing triggers for man db ...
root@hiox:~