Table des matières
Installation de QElectroTech on Debian
This document describes the procedure to follow to install the current development version (0.100) of QElectroTech under Debian GNU/Linux.
Installing version 0.100 under development
Note: Most of the operations presented below must be carried out in a terminal.
Apt repository key
download key-file:
wget -q https://debian.qelectrotech.org/qet/builds/debian/Qelectrotech_Repository.asc
and save (as root) to /etc/apt/keyrings
Step 2: Add the repository to your sources.list
Debian Stable
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
Debian Sid
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
Step 3: Debian pinning
[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
Step 4 : installation
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.
Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details
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