Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
doc:install_debian [28/04/2016 04:19] scorpio810doc:install_debian [20/06/2025 16:04] (Version actuelle) – [Debian Stable] scorpio810
Ligne 1: Ligne 1:
 +====== Installation de QElectroTech on Debian ======
  
 +{{:doc:logo_debian.png|}} 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:
 +<code>
 +su -
 +cd /etc/apt/keyrings
 +wget -q https://debian.qelectrotech.org/qet/builds/debian/Qelectrotech_Repository.asc</code>
 +
 +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:
 +
 +<code> nano /etc/apt/sources.list.d/qelectrotech.sources</code>
 +
 +content of /etc/apt/sources.list.d/qelectrotech.sources:
 +
 +<code>
 +# 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
 +
 +</code>
 +
 +==== 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:
 +
 +
 +<code>
 +# 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
 +
 +</code>
 +
 +
 +
 +You should then update your cache: <code>apt-get update</code>
 +
 +
 +
 +
 +==== Step 3: Debian pinning ====
 +
 +
 +<code>
 +[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
 +
 +        
 +</code>     
 +
 +The following entry assigns high priority to all versions of the QElectroTech package whose version number begins with 0.100.: 
 +   
 +<code>
 +laurent@debian:~$ cat /etc/apt/preferences.d/40qelectrotech-devel
 +Package: qelectrotech*
 +Pin: version 0.100.*
 +Pin-Priority: 1001
 +
 +</code> 
 +As root
 +<code>
 +# echo -e 'Package: qelectrotech* \nPin: version 0.100.* \nPin-Priority: 1001' > /etc/apt/preferences.d/40qelectrotech-devel
 +</code>
 +With sudo
 +<code>
 +echo -e 'Package: qelectrotech* \nPin: version 0.100.* \nPin-Priority: 1001' | sudo tee /etc/apt/preferences.d/40qelectrotech-devel > /dev/null
 +</code>
 +
 +==== Step 4 : installation ====
 +
 +<code>apt-get install qelectrotech qelectrotech-data qelectrotech-examples qet-tb-generator pysimplegui</code>
 +
 +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 ===
 +
 +
 +
 +<code>
 +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
 +</code>
 +Now remove in /etc/apt/sources.list :
 +<code> deb https://debian.qelectrotech.org/qet/builds/debian/ unstable main</code>
 +
 +And old key:
 +<code> sudo apt-key del 1D4FB6C1</code>
 +
 +=== NO_PUBKEY BC9F825E1D4FB6C1 - Download for Debian Bookworm === 
 +=== NO_PUBKEY B8D8B0B00ADD2851 === 
 +
 +see :https://qelectrotech.org/forum/viewtopic.php?id=2867
Imprimer/exporter