Creating Modules in Wolvix
Converting a package to a module:
Converting a Slackware .tgz package to a module is very easy. It's done with the 'tgz2lzm' command: (tgz2lzm input-file.tgz output-file.lzm)
tgz2lzm package-1.0-i486-1.tgz mymodule.lzm
- The module name does not have to be the same as the package name. Use what ever name you wish, just remember to end it with .lzm
Creating a module from a directory:
You can create a module from a directory with the 'dir2lzm' command: (dir2lzm input-directory/ output-module.lzm)
dir2lzm somedirectory/ mymodule.lzm
Note! The directory
'somedirectory' is not added to the module, only the directories and files inside it are included. So if you want to keep the path:
somedirectory/ you have to place it inside another directory first.
Extracting a module to a directory:
You can reverse the process described above with the 'zlm2dir' command: (zlm2dir input-module.lzm output-directory/)
lzm2dir mymodule.lzm somedirectory/
Creating a module from two or more packages:
In order to create a larger module from several Slackware packages, you need to install all the packages to a temporary directory first, then create a module from that directory.
To install packages to a specific directory, and
not to the system, use the 'ROOT=' command: (ROOT=input-directory/ installpkg input-package.tgz)
ROOT=temp/ installpkg first-package.tgz second-package.tgz third-package.tgz
Or if you'd like to install all the packages in the current directory, you can use the wildcard '*' like this:
ROOT=temp/ installpkg *.tgz
The 'ROOT=' command also works with 'removepkg', so if you change your mind and don't want the "second-package" to be in your module, you could remove it again like this:
ROOT=temp/ removepkg second-package.tgz
- A list of all installed packages can be found in the /var/log/packages directory inside the temporary work directory.
CategoryGuide
There are no comments on this page. [Add comment]