This document describes the procedure to follow to install the current development version (0.100) of QElectroTech under Debian GNU/Linux.
Note: Most of the operations presented below must be carried out in a terminal.
download key-file:
wget -q https://debian.qelectrotech.org/qet/builds/debian/Qelectrotech_Repository.asc
and save (as root) to /etc/apt/keyrings
adjust sources-list entry for QElectroTech file needs the ending “.sources” as in this example:
/etc/apt/sources.list.d/qelectrotech.sources
content of /etc/apt/sources.list.d/qelectrotech.sources:
# draw electric diagrams with QElectroTech # Types: deb URIs: https://debian.qelectrotech.org/qet/builds/debian/ Suites: stable Components: main Enabled: yes Signed-By: /etc/apt/keyrings/Qelectrotech_Repository.asc
adjust sources-list entry for QElectroTech file needs the ending “.sources” as in this example:
/etc/apt/sources.list.d/qelectrotech.sources
content of /etc/apt/sources.list.d/qelectrotech.sources:
# draw electric diagrams with QElectroTech # Types: deb URIs: https://debian.qelectrotech.org/qet/builds/debian/ Suites: unstable Components: main Enabled: yes Signed-By: /etc/apt/keyrings/Qelectrotech_Repository.asc
You should then update your cache:
apt-get update
[04:18:09] laurent@debian:~$ apt-cache policy qelectrotech qelectrotech: Installé : 0.100.0.r8447-1 Candidat : 0.100.0.r8447-1 Table de version : 1:0.9-3 500 500 http://ftp.fr.debian.org/debian unstable/main amd64 Packages 500 http://deb.debian.org/debian unstable/main amd64 Packages *** 0.100.0.r8447-1 1001 500 https://debian.qelectrotech.org/qet/builds/debian unstable/main amd64 Packages 100 /var/lib/dpkg/status
The following entry assigns high priority to all versions of the QElectroTech package whose version number begins with 0.100.:
laurent@debian:~$ cat /etc/apt/preferences.d/40qelectrotech-devel Package: qelectrotech* Pin: version 0.100.* Pin-Priority: 1001
As root
# echo -e 'Package: qelectrotech* \nPin: version 0.100.* \nPin-Priority: 1001' > /etc/apt/preferences.d/40qelectrotech-devel
With sudo
echo -e 'Package: qelectrotech* \nPin: version 0.100.* \nPin-Priority: 1001' | sudo tee /etc/apt/preferences.d/40qelectrotech-devel > /dev/null
apt-get install qelectrotech qelectrotech-data qelectrotech-examples qet-tb-generator pysimplegui
That's it, QElectroTech should now be installed. You can launch it using the “qelectrotech” command.
Provided your desktop environment complies with FreeDesktop.org standards,
QET should also appear in its menus, and .qet and .elmt files should open by default in QElectroTech.
sudo apt-key export 1D4FB6C1 | sudo gpg --dearmour -o /usr/share/keyrings/qelectrotech.gpg echo "deb [signed-by=/usr/share/keyrings/qelectrotech.gpg] https://debian.qelectrotech.org/qet/builds/debian/ unstable main" | sudo tee /etc/apt/sources.list.d/qelectrotech.list
Now remove in /etc/apt/sources.list :
deb https://debian.qelectrotech.org/qet/builds/debian/ unstable main
And old key:
sudo apt-key del 1D4FB6C1