Installation unter Linux

From FreeCAD Documentation
Revision as of 09:32, 9 June 2020 by Maker (talk | contribs) (Created page with "Wenn das immer noch nicht gut genug ist und keine andere Quelle eines vorkompilierten Pakets für Deine Umstände finden kannst, wirst Du Compile on Linux/de|FreeCAD selbst...")

Übersicht


Die Installation von FreeCAD auf den bekanntesten Linux Systemen wurde nun von der Gemeinschaft befürwortet, und FreeCAD sollte direkt über den in Ihrer Distribution verfügbaren Paketmanager verfügbar sein. Die FreeCAD Mannschaft stellt auch einige zur Verfügung:

Ubuntu und Ubuntu-basierte Systeme

Viele Linuxdistributionen basieren auf Ubuntu und teilen Ihre Repositorien. Neben den offiziellen Varianten (Kubuntu, Lubuntu und Xubuntu) gibt es nicht offizielle Ableitungen wie etwa Linux Mint, Voyager und andere. Die nachfolgenden Installationsoptionen sollten kompatibel zu allen diesen Systemen sein.

Offizielle

FreeCAD ist in den Ubuntu Universum Repositorien verfügbar und kann über das Template:MenuCommand/de oder im Terminal installiert werden:

sudo apt install freecad

Hinweis: Das Ubuntu Universe Paket kann veraltet sein, da die Packung hinter dem neuesten stabilen Quellcode zurückbleiben kann. In diesem Fall wird empfohlen, das Paket aus dem -stable zu installieren. PPA unten. Darüber hinaus kann die Installation des Pakets -daily durchgeführt werden, um den Entwicklungszweig zu testen.

Stabile PPA

Persönliches Paket Archiv (PPA) für die stabile FreeCAD Version wird von der FreeCAD Gemeinschaft auf Launchpad gepflegt. Das Launchpad Repositorium heißt FreeCAD Stable Releases.

GUI

Installiere das stabile PPA über die grafische Benutzeroberfläche (GUI):

1. Navigiere zu Template:MenuCommand/de
2. Klicke auf And, dann kopiere und füge die folgende Zeile ein
ppa:freecad-maintainers/freecad-stable
3. Füge die Quelle hinzu, schließe den Dialog und lade deine Softwarequellen neu, falls du dazu aufgefordert wirst.

Jetzt kannst Du die letzte stabile FreeCAD Version über das Template:MenuCommand/de finden und installieren.

CLI

Installiere das stabile PPA über die Befehlszeilenoberfläche (CLI):

1. Füge das PPA zu deinen Softwarequellen hinzu:
sudo add-apt-repository ppa:freecad-maintainers/freecad-stable
2. Rufe die aktualisierten Paketlisten ab:
sudo apt update
3. Installiere dann FreeCAD zusammen mit der Offline Dokumentation:
sudo apt install freecad freecad-doc

Hinweis: Aufgrund von Packungsproblemen ist das Paket freecad-doc in bestimmten Versionen von Ubuntu mit der Installation von FreeCAD oder einer seiner Abhängigkeiten kollidiert; wenn dies der Fall ist, entferne das Paket freecad-doc, und installiere nur das Paket freecad. Wenn das Paket freecad-doc nicht existiert, dann ignoriere es.

Installation prüfen

4. Once you have the stable PPA added to your sources using one of the above methods, the freecad package will install this PPA version over the one provided by the Ubuntu Universe repository. You can see the available versions with the following apt-cache command:
apt-cache policy freecad
The output should look similar to the following (of course the version info will vary):
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. Invoke the stable (PPA) version of FreeCAD from the GUI or CLI. The latter method is as follows:
./freecad

Development PPA (Daily)

As FreeCAD is in constant development, you may wish to install the daily package to keep with the latest improvements and bug fixes. The repository is also hosted on Launchpad and is called freecad-daily.

This version is compiled daily from the official master repository. Please beware that although it will contain new features and bug fixes, it may also have newer bugs, and be unstable.

Add the daily PPA to your software sources, update the package lists, and install the daily package:

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

Every day you can update to the latest daily:

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

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.

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

Note: 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 version. The openSUSE package may be outdated as the packaging may lag behind the latest stable source code. In this case, it is suggested to install the package manually from the below indicated (Expand) source repositories.

A vast release program for FreeCAD package builds are offered. Please visit for a survey:

Survey of repositories on openSUSE

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.

Installation auf anderen Linux/Unix Systemen

Viele gängige Linux Distributionen enthalten nun ein vorkompiliertes FreeCAD als Teil der Standardpakete. Dies ist oft veraltet, aber ein guter Ausgangspunkt. Überprüfe die Standardpaketmanager für Dein System. Eine der folgenden (Teil-) Befehlslisten könnte die offizielle FreeCAD Version aus dem Terminal installieren. Dafür werden wahrscheinlich Administratorrechte benötigt.

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

Beim Paketnamen ist fallabhängig, also versuche `FreeCAD` sowie `freecad`. Wenn das nicht funktioniert, entweder weil der Paketmanager keine vorkompilierte FreeCAD-Version zur Verfügung hat, oder weil die verfügbare Version für Deine Zwecke zu alt ist, kann versucht werden, eine der folgenden Dateien herunterzuladen. .AppImage Veröffentlichungen aus den github Repositorien. Diese funktionieren in der Regel auf den meisten 64 Bit Linux Distributionen, ohne spezielle Installation. Stelle einfach sicher, dass die heruntergeladene Datei als ausführbar markiert ist, und führe sie dann aus.

Wenn das immer noch nicht gut genug ist und keine andere Quelle eines vorkompilierten Pakets für Deine Umstände finden kannst, wirst Du FreeCAD selbst kompilieren müssen.

=Installation der Windowsversion unter Linux

Siehe die Unter Windows installieren Seite.

Nächster Schritt

Wenn Du FreeCAD installiert hast, ist es Zeit für die ersten Schritte!