Linux Desktop slimming acceleration Tool Group trans-purge

Source: Internet
Author: User
Linux Desktop slimming acceleration Tool Group trans-purge-Linux general technology-Linux technology and application information, the following is a detailed description. Note: Do not try it for new Linux users.

Trans-purge is a group of gadgets written by another friend, Hong Ren (author of PCMan File Manager), to slim down the Linux desktop and accelerate program startup. These tools include desktop-purge, mime-purge, and gconf-purge. Among them, desktop-purge can be from *. delete useless translation content in the desktop file; mime-purge can delete useless translation content in the mime-database; gconf-purge can delete useless translation content in the gconf schema. In general, trans-purge is a set of gadgets that allow Linux to slim down and enable programs faster by removing useless multi-language translations from the system. After trans-purge processing, only English and currently in use locale will be left in Linux.

The use of trans-purge is as follows:

Download source code:
Wget http://pcman.sayya.org/desktop-purge.c
Wget http://pcman.sayya.org/mime-purge.c
Wget http://pcman.sayya.org/gconf-purge.c

Install the compilation dependency:
Sudo apt-get install libglib2.0-dev

Compile the program:
Gcc 'pkg-config glib-2.0 -- cflags -- libs'-o desktop-purge desktop-purge.c
Gcc 'pkg-config glib-2.0 -- cflags -- libs'-o mime-purge mime-purge.c
Gcc 'pkg-config glib-2.0 -- cflags -- libs'-o gconf-purge gconf-purge.c

Installer:
Sudo cp desktop-purge/usr/bin/
Sudo cp mime-purge/usr/bin/
Sudo cp gconf-purge/usr/bin/

Execute cleanup:

Manual cleaning:
Sudo desktop-purge
Sudo mime-purge
Sudo gconf-purge

Automatic Cleaning:
Let apt-get automatically clean up after installing the software. Create the/etc/apt. conf. d/99-transpurge file and add the following content:

DPkg
{
Post-Invoke {"if [$ (ps w-p" $ PPID "| grep-c remove )! = 1]; then/usr/bin/desktop-purge>/dev/null;/usr/bin/mime-purge>/dev/null; /usr/bin/gconf-purge>/dev/null; else exit 0; fi ";};
};

Warning useless translation cannot be restored after being cleared. if the system is damaged after use, the author is not responsible.

PS. After I use it, there are no other problems.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.