Tiny Core Linux
dCore Import Debian Packages to Mountable SCE extensions => dCore X86 => Topic started by: sm8ps on June 15, 2015, 10:02:09 AM
-
Is it possible to import packages from outside any repo in the way dpkg-reconfigure does?
-
You mean install a single deb that is on the local machine?
-
Exactly.
-
Ok, that is what the original deb2tcz script did. Would be simple to make a deb2sce, of course that name is taken by a function used by sce-import. I will aim to create a simple deb to sce. I would rather convert it to an sce to be installed, supporting installing as a deb is not feasible.
-
That would be very useful, indeed. Regarding the name, the best I have come up with is 'sce-fromdeb' so as to keep it in line with the other sce-functions.
-
Maybe sce-deb2sce as it names it's function. deb2sce could be renamed, but the sce- prefix I agree it should have anyway like th other sce tools and makes it easy to find.
-
I am working on this, maybe in the next week or so it can appear. I would like to have utilities like this start as an extension as to not make for continual updating of 5 dCore's as bugs are found. Then when stable can be put in base.
-
Actually, finished it and it tested out ok. sce-deb2sce is availalbe as an extension for x86 and armv7 dCore ports.
Simple usage: sce-deb2sce file_5.22+15-2_i386.deb
Also, supports having a startup script in the same directory as the deb, this case would need to be named file.deb2sce and it will be included in the sce just like the ones on the server.
-
hi jason,
a wrong use of sce-deb2sce deletes the import-folder with all stored deb-packages:
tc@box:~$ sce-deb2sce
Please run as root or with the sudo command.
tc@box:~$ sudo sce-deb2sce
You must specify a deb file.
Only Debian packages work with this.
after this action the import-folder is deleted.
thank you for your help.
-
Uh oh, thanks for pointing this out. I will fix it now.
-
Uploaded. Yeah, when deleting files or directories that include a variable we have to make sure the variable is not null. Should be fixed now, thanks for the report.
-
I finally got around to testing it and it works well. Thank you very much!
This is a very useful extension. It was a good move to have it tested as an extension rather than include it into the image. However, I do think it should eventually be integrated after it has been tested.
I would suggest to have the sce-file automatically moved under 'tce/sce/' so that it appears in the list of sce-load without having to manually move it. What do you think?
-
I think this function could be part of sce-import, since it imports a deb in the system
-
I will think about it, but it is only for a single deb in the same directory. Perhaps best left standalone, but could be in base once tested and stable.