Difference between revisions of "Beginners Guide to Package Maintaining"

From ArchWiki
Jump to: navigation, search
(created a new page and outline, needs lots of work)
 
(14 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 
[[Category:Classroom]]
 
[[Category:Classroom]]
 +
[[Category:Package development]]
 +
{{Stub|Incomplete article}}
 
== Objectives ==
 
== Objectives ==
  
Line 6: Line 8:
 
1. Learn what a source package consists of and how they are installed and uninstalled on a Linux system.
 
1. Learn what a source package consists of and how they are installed and uninstalled on a Linux system.
  
2. Learn what an Arch Linux Package is, and how pacman and abs use them to install software.
+
2. Learn what an Arch Linux Package is, and how [[pacman]] and [[makepkg]] use them to install software.
  
3. Get a short introduction to bash and the specific variables and functions used in Arch Linux PKGBUILDS
+
3. Get a short introduction to bash and the specific variables and functions used in an Arch Linux [[PKGBUILD]]
  
4. Learn how to write their own PKGBULID files by looking at the files in a source archive, checking the md5 sum, and using a PKGBUILD template, this would include ruby, cvs, git and other non-standard sources.
+
4. Learn how to write their own PKGBUILD files by looking at the files in a source archive, checking the md5 sum, and using a PKGBUILD template. This would include ruby, cvs, git and other version controlled sources.
  
5. Learn how to upload packages to the AUR and how to find orphan packages and adopt them.
+
5. Learn how to upload packages to the [[AUR]] and how to find orphan packages and adopt them.
  
 
== Prerequisites ==
 
== Prerequisites ==
Line 20: Line 22:
 
1. Basic commands used on a Linux System
 
1. Basic commands used on a Linux System
  
2. Be familiar with the Linux directory hierarchy
+
2. Be familiar with the Linux directory hierarchy see [[Arch Packaging Standards#Directories]]
  
 
3. How to unarchive files
 
3. How to unarchive files
Line 34: Line 36:
 
2. An internet connection
 
2. An internet connection
  
== Lesson 1: Installing from Source ==
+
== Complete Resources List ==
  
=== Lesson 1 Resources ===
+
List all the resources used in the lessons
  
http://www.tuxfiles.org/linuxhelp/softinstall.html
+
[[PKGBUILD Templates]]
  
=== Lesson 1 Procedure ===
+
== Suggested Reading ==
 +
[[PKGBUILD]]
  
1. Have the students open a source archive, and look at the contents of the directory. What files and directories are there?
+
[[Arch Packaging Standards]]
  
2. Open the readme file, the make file, etc and look at the contents
+
[https://wiki.archlinux.org/index.php/Arch_Build_System The Arch Build System (ABS)]
  
3. Explain what the files and directories do, how they are installed, and where the files go after installation.
+
[http://www.gnu.org/software/make/ GNU Make]
 
+
== Lesson 2: ==
+
 
+
== Lesson 3: ==
+
 
+
== Complete Resources List ==
+
 
+
List all the resources used in the lessons
+
  
 
== See Also ==
 
== See Also ==
  
Any other links and useful information that can extend knowledge or might be helpful
+
[[DeveloperWiki#Packaging_Guidelines]]

Revision as of 00:09, 6 March 2013

Tango-document-new.pngThis article is a stub.Tango-document-new.png

Notes: Incomplete article (Discuss in Talk:Beginners Guide to Package Maintaining#)

Objectives

In this class, Students will:

1. Learn what a source package consists of and how they are installed and uninstalled on a Linux system.

2. Learn what an Arch Linux Package is, and how pacman and makepkg use them to install software.

3. Get a short introduction to bash and the specific variables and functions used in an Arch Linux PKGBUILD

4. Learn how to write their own PKGBUILD files by looking at the files in a source archive, checking the md5 sum, and using a PKGBUILD template. This would include ruby, cvs, git and other version controlled sources.

5. Learn how to upload packages to the AUR and how to find orphan packages and adopt them.

Prerequisites

Before taking this class, students should have knowledge of

1. Basic commands used on a Linux System

2. Be familiar with the Linux directory hierarchy see Arch Packaging Standards#Directories

3. How to unarchive files

4. How to use a text editor

5. Have some knowledge of file/directory permissions

Materials

1. An up-to-date Arch Linux Installation

2. An internet connection

Complete Resources List

List all the resources used in the lessons

PKGBUILD Templates

Suggested Reading

PKGBUILD

Arch Packaging Standards

The Arch Build System (ABS)

GNU Make

See Also

DeveloperWiki#Packaging_Guidelines