Editing Ports

Jump to: navigation, search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 3: Line 3:
 
== Introduction ==
 
== Introduction ==
  
'''GhostBSD''' ports are based on FreeBSD ports with additional applications.
+
'''GhostBSD''' ports are based on FreeBSD/TrueOS ports with additional applications.<br/>
 
+
{|class="wikitable" style="width:96.5%;background:#FFFFFF; border:2px solid #008000"
+
|-
+
|style="text-align:center;padding: 10px" | [[File:Dialog-warning.png|35px|link=]] '''Attention: Don't use portsnap''' to get the FreeBSD ports collection on your computer. If you update a package, that installed a service, you will experience some breakage.<br/>
+
If you used portsnap it is recommended to run <code>#rm -r /usr/ports</code> <br/>before you switch to GhostBSD ports.
+
|}
+
 
+
==GhostBSD Ports==
+
 
+
The GhostBSD ports will be updated from the FreeBSD ports collection continuously. It is recommended to use the GhostBSD ports within GhostBSD. GhostBSD does not use the same init system then FreeBSD.
+
 
+
'''To get GhostBSD ports run:'''<br/> <code>sudo git clone https://github.com/ghostbsd/ghostbsd-ports /usr/ports</code>
+
 
+
For users we recommend:
+
* <code>pkg install ports</code>
+
or
+
* use [[Software Station]].
+
 
+
Eric Turgeon, [28.04.20 21:48]<br/>
+
Both ways are possible, but for users i would recommend to use pkg install ports since it is the same version as the packages were build with.
+
 
+
Eric Turgeon, [28.04.20 21:48]<br/>
+
ghostbsd/ghostbsd-ports is more devs ports
+
 
+
 
The ports-collection of GhostBSD allows users and admins to install applications easily. At the moment are in the ports-collection more than 30.000 ports.  
 
The ports-collection of GhostBSD allows users and admins to install applications easily. At the moment are in the ports-collection more than 30.000 ports.  
  
Line 38: Line 14:
 
To install an application you have to download the source code and unpack it. You have to go to the directory of that port on your PC and do: ''make install'' as root.  
 
To install an application you have to download the source code and unpack it. You have to go to the directory of that port on your PC and do: ''make install'' as root.  
  
Each port contains a make-file. It downloads, unpacks and installs the source code and all patches of an application.
+
Each port contains a make-file. It downloads, unpacks and installs the source code and all patches of an application.  
 
+
The Ports Collection contains directories for software categories. Inside each category are sub-directories for individual applications. Each application sub-directory contains a set of files that tells GhostBSD how to compile and install that program, called a ports skeleton. Each port skeleton includes these files and directories:
+
 
+
    ''Makefile:'' contains statements that specify how the application should be compiled and where its components should be installed.
+
 
+
    ''distinfo:'' contains the names and checksums of the files that must be downloaded to build the port.
+
 
+
    ''files/:'' this directory contains any patches needed for the program to compile and install on FreeBSD. This directory may also contain other files used to build the port.
+
 
+
  '' pkg-descr:'' provides a more detailed description of the program.
+
 
+
    ''pkg-plist:'' a list of all the files that will be installed by the port. It also tells the ports system which files to remove upon deinstallation.
+
 
+
Some ports include pkg-message or other files to handle special situations. For more details on these files, and on ports in general, refer to the [https://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/index.html FreeBSD Porter's Handbook].
+
 
+
The port does not include the actual source code, also known as a distfile. The extract portion of building a port will automatically save the downloaded source to /usr/ports/distfiles.
+
 
+
==Update the GhostBSD ports==
+
 
+
Before installing any port update the GhostBSD ports:
+
 
+
<code># cd /usr/ports</code>
+
 
+
<code># git pull --rebase</code>
+
 
+
==Installing Ports==
+
 
+
Go to the directory within the ports directory where the application is located
+
 
+
<code># cd /usr/ports/xyz....</code>
+
 
+
There you do
+
 
+
<code># make install</code>
+
 
+
and see the installation process.
+
  
 
== Suggestion ==
 
== Suggestion ==
  
There are a lot of pre-compiled packages. It is easier to open a terminal and use [[pkg]] or much easier to use [[Software Station]].
+
There are a lot of pre-compiled packages. It is easier to open a terminal and use [[pkg]] or more easier to use [[Software Station]].
  
 
== For more Information ==
 
== For more Information ==
Line 84: Line 24:
 
* [https://www.freebsd.org/doc/handbook/ports-using.html Using the Ports Collection on FreeBSD]
 
* [https://www.freebsd.org/doc/handbook/ports-using.html Using the Ports Collection on FreeBSD]
 
* [[Using the Ports Collection|Using the Ports Collection on GhostBSD]]
 
* [[Using the Ports Collection|Using the Ports Collection on GhostBSD]]
* [http://github.com/GhostBSD/ports.git Spacial ports for GhostBSD on GitHub]
+
* [http://github.com/GhostBSD/ports.git GhostBSD ports on GitHub]
* [https://github.com/ghostbsd/ghostbsd-ports FreeBSD/TrueOS ports with GhostBSD ports ]
+
 
+
  
  
 
[[Category:Application Management]]
 
[[Category:Application Management]]

Please note that all contributions to GhostBSD Wiki are considered to be released under the Creative Commons Attribution (see GhostBSD Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel | Editing help (opens in new window)

Template used on this page: