If you are not adept at spelunking through the CLI, then I do not recommend doing this - unless you have a desire to learn and have a scratch NAS to experiment with.
Do not ask me for help about this either, this is being placed here for those with the technical knowledge, inkling and curiosity to remove the apps they do not use.
I have performed this on three different NAS units, all running 4.3.4.xxxx, I have no idea if this will work with 4.5.1.xxxx, and seeing as I have no desire to upgrade to that dumpster fire of QTS, someone else will have to look into this is, if they are so inclined.
Apps that I have removed with this method:
- License Center
- QTS SSL Certificate
- SSD Profiling Tool
- Multimedia Console
First, look in /etc/config/qpkg.conf to see where the apps you want to remove are installed.
For example, Licence Center (as well as many others) is installed in /mnt/ext/opt/LicenseCenter
In some cases there is a .uninstall program that can be executed to remove the QPKG, in those cases the removal is a simple as executing:
Code: Select all
./.uninstall
Again, I will use License Center as the example for performing a package removal manually.
1. Look in /etc/init.d/ to see if there is an associated .sh file, if one exists, the read the .sh file and see if it has a stop command, then execute the stop command.
Code: Select all
/etc/init.d/LicenseCenter.sh stop
/bin/sync
/mnt/ext/opt/
/etc/init.d/
/etc/rcS.d/
/etc/rcK.d/
/home/httpd/RSS/images/
/home/httpd/cgi-bin/qid/
/home/httpd/cgi-bin/qpkg/
The package removal commands are as follows:
Code: Select all
/bin/rm -fr /mnt/ext/opt/LicenseCenter
/bin/rm -f /etc/init.d/LicenseCenter.sh
/bin/rm -f /etc/rcS.d/S117LicenseCenter
/bin/rm -f /etc/rcK.d/QK107LicenseCenter
/bin/rm -f /home/httpd/RSS/images/LicenseCenter.gif
/bin/rm -f /home/httpd/RSS/images/LicenseCenter_80.gif
/bin/rm -f /home/httpd/RSS/images/LicenseCenter_gray.gif
/bin/rm -rf /home/httpd/cgi-bin/qid/qlicenseRequest.cgi
/bin/rm -rf /home/httpd/cgi-bin/qpkg/LicenseCenter
3. Edit the /etc/config/qpkg.conf file to remove the entries for the package that was removed.
Code: Select all
vi /etc/config/qpkg.conf
Code: Select all
[LicenseCenter]
Name = LicenseCenter
Status = complete
Version = 1.5.10
Author = QNAP Systems, Inc.
QPKG_File = LicenseCenter.qpkg
Date = 2020-12-15
Alt_Shell = /mnt/ext/opt/LicenseCenter/LicenseCenter.sh
Install_Path = /mnt/ext/opt/LicenseCenter
RC_Number = 101
Desktop = 1
WebUI = QTS_desktop
Display_Name = License Center
Sys_App = 2
Force_Visible = 1
Enable = TRUE
App_ID = A218
Class = null
Build = 20200904
FW_Ver_Min = 4.3.4
Good luck, and don't complain to me if you pooch your NAS, this is all purely at your own risk.