Version 5 Development > Plugin Design
Some suggestions to get the ball rolling
bubbaQ:
I see two distinct different parts of the package manager.
One is dealing with packages found in the /boot/packages directory.
A completely separate, but related, function, is getting the packages into /boot/packages. That can be done via Internet connectivity, but also manually, and via an upload from a local system.
I may surely be in the minority by having a prod server blocked from direct Internet acces, but my work (and several protective orders) requires it. I don't want a system that is unusable by a server w/o Internet access.
That is why the functionality of processing the package files found in /boot/packages should be independent of Internet access.
BRiT:
--- Quote from: Joe L. on July 21, 2010, 10:42:02 AM ---
--- Quote from: BRiT on July 21, 2010, 10:23:03 AM ---Oh, I absolutely agree that all packages must be versioned. I think that's how installpkg/upgradepkg knows if a package should be upgraded or skipped and prevents reinstalls (unless forced).
--- End quote ---
I'm not as sure it has that kind of embedded knowledge of versions... Slackware's installpkg is just a shell script that just uses tar on the uncompressed .tgz to overlay existing files, regardless of their relative versions.
--- End quote ---
It's upgradepkg that has the smarts. I use the two interchangeably, though as you said installpkg will blindly go ahead and reinstall even if its already installed.
--- Quote --- upgradepkg zlib-1.2.3-i486-2.txz
+==============================================================================
| Skipping package zlib-1.2.3-i486-2 (already installed)
+==============================================================================
installpkg zlib-1.2.3-i486-2.txz
Verifying package zlib-1.2.3-i486-2.txz.
Installing package zlib-1.2.3-i486-2.txz [REC]:
PACKAGE DESCRIPTION:
# zlib (compression library)
#
# zlib is a general purpose thread safe data compression library. The
# data format used by the zlib library is described by RFCs 1950 to
# 1952 in the files ftp://ds.internic.net/rfc/rfc1950.txt (zlib format)
# rfc1951.txt (deflate format) and rfc1952.txt (gzip format).
#
Executing install script for zlib-1.2.3-i486-2.txz.
Package zlib-1.2.3-i486-2.txz installed.
--- End quote ---
WeeboTech:
--- Quote from: bubbaQ on July 21, 2010, 10:47:02 AM ---That is why the functionality of processing the package files found in /boot/packages should be independent of Internet access.
--- End quote ---
I'm not going to argue this point.
This was one of my thoughts for the "downloads or updates" folder.
These are not processed/installed automatically. So an advanced build/prepare package could be downladed here. Installed (processed) then subsequently putting the final prepared package in the proper /boot/packages directory.
Navigation
[0] Message Index
[*] Previous page
Go to full version