Installing on Linux/fr: Difference between revisions

From FreeCAD Documentation
(Created page with "Chaque jour, vous pouvez mettre à jour la dernière version en cours:")
(Created page with "{{Emphasis|Remarque:}} dans certains cas, le nouveau code ou les dépendances ajoutés à FreeCAD provoqueront des erreurs d'empaquetage. Si cela se produit, le daily package...")
Line 114: Line 114:
}}
}}


{{Emphasis|Note:}} in some cases new code or dependencies added to FreeCAD will cause packaging errors; if this happens, a daily package may not be generated until the maintainers manually fix the problems. If you wish to continue testing the latest code, you should get the source code and compile FreeCAD directly; for instructions see [[compiling|compiling]].
{{Emphasis|Remarque:}} dans certains cas, le nouveau code ou les dépendances ajoutés à FreeCAD provoqueront des erreurs d'empaquetage. Si cela se produit, le daily package ne peut pas être généré tant que les responsables ne résolvent pas les problèmes manuellement. Si vous souhaitez continuer à tester le dernier code, vous devez obtenir le code source et compiler directement FreeCAD; pour des instructions, voir [[compiling/fr|compilation]].


Run the daily (PPA) version of FreeCAD:
Run the daily (PPA) version of FreeCAD:

Revision as of 15:29, 4 June 2020

Présentation


L'installation de FreeCAD sur les systèmes Linux les plus connus a maintenant été approuvée par la communauté, et FreeCAD devrait être directement disponible via le gestionnaire de paquets disponible sur votre distribution. L'équipe FreeCAD propose également:

  • Packages "officiels" lors de la sortie de nouvelles versions
  • Dépôts expérimentaux Personal Package Archive (PPA) et AppImages pour tester les fonctionnalités de pointe.

Ubuntu et systèmes dérivés

De nombreuses distributions Linux sont basées sur Ubuntu et en partagent les dépôts. Outre les variantes officielles (Kubuntu, Lubuntu et Xubuntu), il existe des variantes non-officielles telles que Linux Mint, Voyager ou autres. Les options d'installation ci-dessous devraient être compatibles avec ces systèmes.

Dépôt officiel Ubuntu

FreeCAD est disponible dans les dépôts officiels d'Ubuntu et peut être installé via le Template:MenuCommand/fr ou depuis le terminal:

sudo apt install freecad

Remarque: le dépôt d'Ubuntu peut être obsolète. Le paquetage peut prendre du retard par rapport au dernier code source stable. Dans ce cas, il est suggéré d'installer le package à partir du PPA -stable ci-dessous. De plus, l'installation du package -daily peut être effectuée pour tester la branche de développement.

PPA stable

Les archives de packages personnels (PPA) pour la version stable de FreeCAD sont gérées par la communauté FreeCAD sur Launchpad. Le dépôt Launchpad est appelé freecad-stable.

Interface graphique

Pour installer le PPA stable depuis l'interface graphique (GUI):

1. Accédez à Logiciel Ubuntu → Logiciels et mises à jour → Sources de logiciels → Autres logiciels.
2. Cliquez sur And, puis copiez et collez la ligne suivante
ppa:freecad-maintainers/freecad-stable
3. Ajoutez la source, fermez la boîte de dialogue et rechargez vos sources de logiciels, si nécessaire.

Vous pouvez maintenant trouver et installer la dernière version stable de FreeCAD à partir du Ubuntu Software Center.

Commandes en ligne

Pour installer le PPA stable via l'interface de ligne de commande (CLI):

1. Ajoutez le PPA à vos sources de logiciels:
sudo add-apt-repository ppa:freecad-maintainers/freecad-stable
2. Récupérer les listes de paquets mis à jour:
sudo apt update
3. Ensuite, installez FreeCAD avec sa documentation hors ligne:
sudo apt install freecad freecad-doc

Remarque: en raison de problèmes d'empaquetage, dans certaines versions d'Ubuntu, le paquet freecad-doc est entré en collision avec l'installation de FreeCAD ou de l'une de ses dépendances. Si c'est le cas, supprimez le package freecad-doc et installez uniquement le package freecad. Si le package freecad-doc n'existe pas, ignorez-le.

Vérification de l'installation

4. Une fois que vous avez ajouté le PPA stable à vos sources en utilisant l'une des méthodes ci-dessus, le package freecad installera cette version de PPA sur celle fournie par le dépôt Ubuntu Universe. Vous pouvez voir les versions disponibles avec la commande apt-cache suivante:
apt-cache policy freecad
La sortie devrait ressembler à ce qui suit (bien sûr, les informations de version varieront):
freecad:
  Installed: (none)
  Candidate: 2:0.18.4+dfsg1~201911060029~ubuntu18.04.1
  Version table:
     2:0.18.4+dfsg1~201911060029~ubuntu18.04.1 500
        500 http://ppa.launchpad.net/freecad-maintainers/freecad-stable/ubuntu bionic/main amd64 Packages
     0.16.6712+dfsg1-1ubuntu2 500
        500 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
ubuntu@ubuntu:~$ apt-cache policy freecad-doc


5. Exécutez la version stable (PPA) de FreeCAD à partir de l'interface graphique (GUI) ou par la commande en ligne (CLI). Cette dernière méthode est la suivante:
./freecad

La version PPA en cours de développement

Comme FreeCAD est en développement constant, vous souhaiterez peut-être installer le package daily pour suivre les dernières améliorations et corrections de bogues. Le dépôt est également hébergé sur Launchpad et s'appelle freecad-daily.

Cette version est compilée quotidiennement à partir du dépôt officiel maître. Attention, bien qu'elle contienne de nouvelles fonctionnalités et corrections de bugs, elle peut aussi avoir des bugs plus récents et être instable.

Ajoutez le daily PPA à vos sources logicielles, mettez à jour les listes de packages et installez le daily package:

sudo add-apt-repository ppa:freecad-maintainers/freecad-daily
sudo apt-get update
sudo apt-get install freecad-daily

Chaque jour, vous pouvez mettre à jour la dernière version en cours:

sudo apt-get update
sudo apt-get install freecad-daily

Remarque: dans certains cas, le nouveau code ou les dépendances ajoutés à FreeCAD provoqueront des erreurs d'empaquetage. Si cela se produit, le daily package ne peut pas être généré tant que les responsables ne résolvent pas les problèmes manuellement. Si vous souhaitez continuer à tester le dernier code, vous devez obtenir le code source et compiler directement FreeCAD; pour des instructions, voir compilation.

Run the daily (PPA) version of FreeCAD:

freecad-daily

Note: it is possible to install both the -stable and -daily packages in the same system. This is useful if you wish to work with a stable version, and still be able to test the latest features in development. Notice that the executable for the daily version is freecad-daily, but for the stable version it is just freecad.

Debian and other Debian-based systems

Since Debian Lenny, FreeCAD is available directly from the Debian software repositories and can be installed via synaptic or simply with:

sudo apt-get install freecad

OpenSUSE

FreeCAD is typically installed with YAST (abbr. Yet another Setup Tool) the Linux operating system setup and configuration tool, or in any terminal/console (root rights required) with:

zypper install FreeCAD

This procedure only covers the installation of officially released stable FreeCAD program versions, depending on the installed links to the program package repositories of your OS.

Stable

The stable package version: Stable repositories on openSUSE. The correct openSUSE distribution version must be selected in the lower part of the web page.

Note: openSUSE has several options to choose from when downloading FreeCAD. To view these options, visit Survey of stable repositories on openSUSE. Generally for selecting the correct openSUSE distribution needed it is necessary to click on the particular View button.

Development

Latest development releases AKA unstable: Unstable repositories listings on openSUSE

It is recommended to grab the binary packages directly. Then select the correct distribution for your installed openSUSE OS.

Gentoo

FreeCAD can be built/installed simply by issuing:

emerge freecad

Fedora

FreeCAD has been included in the official Fedora packages since Fedora 20. It can be installed from the command line with:

sudo dnf install freecad

On older Fedora releases, that was:

sudo yum install freecad

The gui packages managers can also be used. Search for "freecad". The official release package version tends to be well behind the FreeCAD releases. Package: freecad shows the versions included in the Fedora repositories over time and versions.

More current versions can be obtained by downloading one of the .AppImagereleases from the github repository. These work fine on Fedora.

If you want to keep up with the absolute latest daily builds, FreeCAD is also available on copr. To install the build from there, in a terminal session, enter:

sudo dnf copr enable @freecad/nightly
sudo dnf install freecad

That leaves the copr repository active, so

sudo dnf upgrade

or equivalent, will update to the latest FreeCAD build, along with updates from any of the other active repos. If you want something a bit more stable, you can disable @freecad/nightly again after the initial install. The copr repository only keeps builds from the past 2 weeks. This is not a solution if you want to pick a specific older version.

Instructions are also available on compile FreeCAD yourself, including a script specifically for Fedora. With a minor change, to checkout the specific commit from git, any version since about FreeCAD 0.15 can be built on any distribution since Fedora 21.

Arch

Installing FreeCAD on Arch Linux and derivatives (ex. Manjaro):

pacman -S freecad

Other

If you find out that your system features FreeCAD but is not documented in this page, please tell us on the forum!

Many alternative, non-official FreeCAD packages are available on the net, for example for systems like slackware or fedora. A search on the net can quickly give you some results.

Manual install on .deb based systems

If for some reason you cannot use one of the above methods, you can always download one of the .deb packages available on the Download page.
Template:DownloadUnixStable

Once you downloaded the .deb corresponding to your system version, if you have the Gdebi package installed (usually it is), you just need to navigate to where you downloaded the file, and double-click on it. The necessary dependencies will be taken care of automatically by your system package manager. Alternatively you can also install it from the terminal, navigating to where you downloaded the file, and type:

sudo dpkg -i Name_of_your_FreeCAD_package.deb

changing Name_of_your_FreeCAD_package.deb by the name of the file you downloaded.

After you installed FreeCAD, a startup icon will be added in the "Graphic" section of your Start Menu.

Installing on other Linux/Unix systems

Many common Linux distros now include a precompiled FreeCAD as part of the standard packages. This is often out of date, but is a place to start. Check the standard package managers for your system. One of the following (partial) list of commands could install the official version of FreeCAD for your distro from the terminal. These probably need administrator privileges.

apt-get install freecad
dnf install freecad
emerge freecad
slackpkg install freecad
yum install freecad
zypper install freecad

The package name is case sensitive, so try `FreeCAD` as well as `freecad`. If that does not work for you, either because your package manager does not have a precompiled FreeCAD version available, or because the available version is too old for your needs, you can try downloading one of the .AppImage releases from the github repository. These tend to work on most 64 bit Linux distributions, without any special installation. Just make sure the downloaded file is marked as executable, then run it.

If that still is not good enough, and you can not locate another source of a precompiled package for your situation, you will need to compile FreeCAD yourself.

Installing Windows Version on Linux

See the Install on Windows page.

Next Step

Once you've got FreeCAD installed, it's time to get started!