Ceci est une ancienne révision du document !


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.

Installation de la version 0.90 en cours de développement

:!: 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 3: 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

Debian pinning

[04:18:09] laurent@debian:~$ apt-cache policy qelectrotech
qelectrotech:
  Installé : 0.50.r4018-1
  Candidat : 0.50.r4025-1
  Épinglage de paquet : 0.50.r4025-1
 Table de version :
     1:0.4-2 1001
        500 [url]http://ftp.fr.debian.org/debian/[/url] sid/main amd64 Packages
     0.50.r4025-1 1001
        500 [url]http://debian.qelectrotech.org/qet/builds/debian/[/url] unstable/main amd64 Packages
 *** 0.50.r4018-1 1001
        100 /var/lib/dpkg/status
     0.22+svn897-1.1 1001
        500 [url]http://ftp.fr.debian.org/debian/[/url] stable/main amd64 Packages
        

L'entrée suivante affecte une priorité haute à toutes les versions du paquet QElectroTech dont le numéro de version commence par 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

NO_PUBKEY BC9F825E1D4FB6C1 - Download for Debian Bookworm

Imprimer/exporter