I am reading the thread answer How to install “vanilla” TeXLive on Debian or Ubuntu? and completing mono-TeXLive setting but the test proposed by the answer sudo apt install kile fails, so allowing the installation of kile although it should be prevented by equivs.
Setting up the prevention mechanism - make Debian think you installed TeXLive after successful installation with tmlgr
masi@masi:~$ sudo apt install equivs --no-install-recommends
[sudo] password for masi:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
chktex dvidvi fonts-cabin fonts-comfortaa fonts-ebgaramond fonts-ebgaramond-extra fonts-freefont-otf
fonts-gfs-artemisia fonts-gfs-complutum fonts-gfs-didot fonts-gfs-neohellenic fonts-gfs-olga
fonts-gfs-solomos fonts-inconsolata fonts-junicode fonts-lato fonts-lobster fonts-lobstertwo
fonts-oflb-asana-math fonts-sil-gentium fonts-sil-gentium-basic lacheck latexdiff
libboost-signals1.55.0 libfile-homedir-perl libfile-which-perl libpotrace0 libptexenc1 libsynctex1
libyaml-tiny-perl libzzip-0-13 pfb2t1c2pfb ps2eps ttf-adf-accanthis ttf-adf-gillius ttf-adf-universalis
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed:
equivs
0 upgraded, 1 newly installed, 0 to remove and 61 not upgraded.
Need to get 20.7 kB of archives.
After this operation, 147 kB of additional disk space will be used.
Get:1 http://ftp.fi.debian.org/debian/ jessie/main equivs all 2.0.9 [20.7 kB]
Fetched 20.7 kB in 0s (63.0 kB/s)
Selecting previously unselected package equivs.
(Reading database ... 230892 files and directories currently installed.)
Preparing to unpack .../archives/equivs_2.0.9_all.deb ...
Unpacking equivs (2.0.9) ...
Processing triggers for man-db (2.7.0.2-5) ...
Setting up equivs (2.0.9) ...
masi@masi:~$ mkdir -p /tmp/tl-equivs && cd /tmp/tl-equivs
masi@masi:/tmp/tl-equivs$ equivs-control texlive-local
masi@masi:/tmp/tl-equivs$ wget -O texlive-local https://www.tug.org/texlive/files/debian-equivs-2017-ex.txt--2017-06-07 23:31:19-- https://www.tug.org/texlive/files/debian-equivs-2017-ex.txt
Resolving www.tug.org (www.tug.org)... 91.121.174.77
Connecting to www.tug.org (www.tug.org)|91.121.174.77|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2314 (2.3K) [text/plain]
Saving to: ‘texlive-local’
texlive-local 100%[=========================================>] 2.26K --.-KB/s in 0s
2017-06-07 23:31:20 (71.4 MB/s) - ‘texlive-local’ saved [2314/2314]
masi@masi:/tmp/tl-equivs$ equivs-build texlive-local
dh_testdir
dh_testroot
dh_prep
dh_testdir
dh_testroot
dh_install
dh_installdocs
dh_installchangelogs
dh_compress
dh_fixperms
dh_installdeb
dh_gencontrol
dpkg-gencontrol: warning: File::FcntlLock not available; using flock which is not NFS-safe
dh_md5sums
dh_builddeb
dpkg-deb: building package `texlive-local' in `../texlive-local_2017-1_all.deb'.
The package has been created.
Attention, the package has been created in the current directory,
not in ".." as indicated by the message above!
masi@masi:/tmp/tl-equivs$ sudo dpkg -i texlive-local_2017-1_all.deb
Selecting previously unselected package texlive-local.
(Reading database ... 230917 files and directories currently installed.)
Preparing to unpack texlive-local_2017-1_all.deb ...
Unpacking texlive-local (2017-1) ...
Setting up texlive-local (2017-1) ...
masi@masi:/tmp/tl-equivs$ sudo apt install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
chktex dvidvi fonts-cabin fonts-comfortaa fonts-ebgaramond fonts-ebgaramond-extra fonts-freefont-otf
fonts-gfs-artemisia fonts-gfs-complutum fonts-gfs-didot fonts-gfs-neohellenic fonts-gfs-olga
fonts-gfs-solomos fonts-inconsolata fonts-junicode fonts-lato fonts-lobster fonts-lobstertwo
fonts-oflb-asana-math fonts-sil-gentium fonts-sil-gentium-basic lacheck latexdiff
libboost-signals1.55.0 libfile-homedir-perl libfile-which-perl libpotrace0 libptexenc1 libsynctex1
libyaml-tiny-perl libzzip-0-13 pfb2t1c2pfb ps2eps ttf-adf-accanthis ttf-adf-gillius ttf-adf-universalis
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 61 not upgraded.
Test fails here, since the above settings should prevent it
masi@masi:/tmp/tl-equivs$ sudo apt install kile
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
chktex dvidvi fonts-cabin fonts-comfortaa fonts-ebgaramond fonts-ebgaramond-extra fonts-freefont-otf
fonts-gfs-artemisia fonts-gfs-complutum fonts-gfs-didot fonts-gfs-neohellenic fonts-gfs-olga
fonts-gfs-solomos fonts-inconsolata fonts-junicode fonts-lato fonts-lobster fonts-lobstertwo
fonts-oflb-asana-math fonts-sil-gentium fonts-sil-gentium-basic lacheck latexdiff
libboost-signals1.55.0 libfile-homedir-perl libfile-which-perl libpotrace0 libptexenc1 libsynctex1
libyaml-tiny-perl libzzip-0-13 pfb2t1c2pfb ps2eps ttf-adf-accanthis ttf-adf-gillius ttf-adf-universalis
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
konsole libkonq-common libkonq5-templates libkonq5abi1
Suggested packages:
dblatex kile-doc kile-l10n kbibtex latex2html lilypond texlive-doc-base
The following NEW packages will be installed:
kile konsole libkonq-common libkonq5-templates libkonq5abi1
0 upgraded, 5 newly installed, 0 to remove and 61 not upgraded.
Need to get 2,369 kB of archives.
After this operation, 6,785 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://ftp.fi.debian.org/debian/ jessie/main libkonq5-templates all 4:4.14.2-1 [42.6 kB]
...
Setting up kile (4:2.1.3-2) ...
Processing triggers for libc-bin (2.19-18+deb8u9) ...
masi@masi:/tmp/tl-equivs$ sudo apt install kile
OS: Debian 8.7
TeXLive: 2017
equivsmethod does not prevent you from explicitly demanding the installation of these packages. It only tricks the package manager into thinking that all dependencies for a TeXlive installation are fulfilled, i.e. if you install a package which requires (parts of) TeXlive theequivswill substitute for that. – Henri Menke Jun 07 '17 at 21:22kileusesudo apt-mark hold kileor use APT pinning. – Henri Menke Jun 07 '17 at 21:26equivsis active? I really would like to have explicitequivs. – Léo Léopold Hertz 준영 Jun 08 '17 at 08:58