This is an old revision of the document!
dCore sce-deb2sce Command
Occasionally a user may wish to import a single package (*.deb file) from outside the standard Debian or Ubuntu repositories. This can be accomplished with the sce-deb2sce
command, a small script not part of a base dCore install.
To obtain and utilize sce-deb2sce
download the desired *.deb file beforehand, then run:
sce-import -o sce-deb2sce sce-load sce-deb2sce sudo sce-deb2sce <DEB-file>
Similar to running sce-import
, an SCE is created, although it remains in the current working directory.
Since SCEs now require an md5sum file to load, this should be created:
md5sum my_new.sce > my_new.sce.md5.txt
The new SCE can then be loaded for use, run:
sce-load /path/to/file/my_new.sce
Alternatively move 'my_new.sce' and 'my_new.sce.md5.txt' to /etc/sysconfig/tcedir/sce/ so it is recognized by sce-load
, then run one of the following to load it for use:
sce-load sce-load my_new.sce
To add the SCE to OnDemand, review the dCore sce-ondemand Command.
Note *.deb file names usually contain the version number, which may be helpful to keep, even though a more generic extension name may be desired. This can be achieved, for example, by moving the newly created version number SCE file (eg. my_new_2.5.3-3_i386.sce) to /tce/import/debs/ with a generic name symbolic link in /tce/sce (eg. my_new.sce).
Notice - The sce-deb2sce script needs updating for anyone willing to patch:
- The command has no –help information.
- An md5sum file should be auto-generated.
- Query whether sudo should be needed to run script.
- Resulting *.sce is owned by root:root, not the usual $USER:staff.
- Nice if script requested permission to copy SCE to /tce/sce.
- During testing a working SCE was not created (suckless-tools_40-1_i386.deb).