Package manager layout

New features which should be implemented in Porteus; suggestions are welcome. All questions or problems with testing releases (alpha, beta, or rc) should go in their relevant thread here, rather than the Bug Reports section.
User avatar
brokenman
Site Admin
Site Admin
Posts: 6105
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v4 all desktops
Location: Brazil

Package manager layout

Post#1 by brokenman » 10 Mar 2011, 03:14

I've begun writing a package manager and i thought i had better first lay it out here so people can offer suggestions now.

Here is the package index file layout. It is the same as slack with one change.

Code: Select all

PACKAGE NAME:  module-name-1.46.xzm
PACKAGE CATEGORY: database
PACKAGE SIZE (compressed):  1446 K
PACKAGE SIZE (uncompressed):  7940 K
PACKAGE REQUIRED:  glibc-solibs >= 2.11.1-i486-3,libiodbc >= 3.52.7-i486-2,ncurses >= 5.7-i486-1,openssl >= 0.9.8n-i486-1 | openssl-solibs >= 0.9.8n-i486-1,readline >= 5.2-i486-4
PACKAGE CONFLICTS:  
PACKAGE SUGGESTS:  
PACKAGE DESCRIPTION:
module-name: A description of the package goes here 
module-name: with the name of the packaged prepended 
module-name: to each line. Any remaining blank lines 
module-name: will still have package name as seen here
module-name: 
module-name: 
module-name: 
module-name: 
FILE LIST:
.
./usr/bin/binary
./lib/blah
./var/log/packages/module-name-1.46-i686-1
======================

The only change made to the default slacky layout is replacing 'PACKAGE LOCATION:' with 'PACKAGE CATEGORY:'

This will make it easy for a package manager to list packages by category, or search by name and description. The txz2xzm and tgz2xzm scripts can be altered to replace above line and ask user for a category.

For the categories here are my suggestions. Feel free to offer suggestions including add, remove, merge of categories:

develop -development related apps
drivers - drivers & firmwares
education - Dont think this one is popular so may remove
games - games
graphics - artwork, themes and image editors
internet - network related apps (chat, downloaders, sync etc)
libraries - common libraries
misc - for stuff that doesn't fit any of the above
multilanguage - non english applications
multimedia - audio, video players & editors, ISO management
office - word editors, charts, spreadsheets, reports
system - apps that alter ro access system settings. font viewer, disk usage, modtools
utilities - withdrawn. what is a utility?
How do i become super user?
Wear your underpants on the outside and put on a cape.

User avatar
Hamza
Warlord
Warlord
Posts: 1908
Joined: 28 Dec 2010, 07:41
Distribution: Porteus
Location: France

Re: Package manager layout

Post#2 by Hamza » 10 Mar 2011, 12:00

I like this idea with PACKAGE CATEGRORY
NjVFQzY2Rg==

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5666
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Re: Package manager layout

Post#3 by fanthom » 10 Mar 2011, 22:12

nothing to add :)

off top: i hope we wont have doubled versions of the same application in the repo (example: firefox-3.6.10, firefox-3.6.15, firefox-4.0, etc...)
Please add [Solved] to your thread title if the solution was found.

Post Reply