Free Downloads, Community Forum,
FAQs and Developer Resources


Make /Tools Your Home | Link to us

Today's posts | Posts since last visit | Most Active Topics

All Forums Register Login Search Subscriptions My Profile Inbox
Tool Warehouse FAQs Resources Help Member List Address Book Logout

SFU Package Manager

 
Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [SFU / Interix / SUA Technology] >> SFU / Interix - Getting Started >> SFU Package Manager Page: [1] 2   next >   >>
Login
Message << Older Topic   Newer Topic >>
SFU Package Manager - Sep. 10, '04, 12:17:32 PM   
mwedwards

 

Posts: 27
Joined: Mar. 21, '04,
Status: offline
Have the SFU team considered the possibility of rolling a package manager for Win32 SFU? I realize this sort of thing could be improvised via shell scripting, but I see a decent package manager helping grow this community. Perhaps not to the extent such tools have helped debian, suse and fedora, but in a significant way nonetheless. Thoughts?
Post #: 1
RE: SFU Package Manager - Sep. 10, '04, 12:58:37 PM   
Rodney

 

Posts: 3728
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
For SFU 3.5 the /Tools pkg (which includes pkg_add) was going to
be included. It was there in the Beta release. I was unaware it was there until Mark
pointed it. They placed the binaries in the wrong location. So pressed for time
for RTM (MS-speak for Release To Manufacturing) they just pulled it. This of course
applies to the Interix side of things. There is a GUI that you can use with pkg
called tkpkg when you have Tcl/Tk installed.

But you ask about a "Win32 SFU" which is confusing. The Win32 parts of SFU are
the NFS, NIS, password sync. All of the utilities, libraries, etc. are Interix.
Perhaps I'm misunderstanding you?

(in reply to mwedwards)
Post #: 2
RE: SFU Package Manager - Sep. 10, '04, 1:51:40 PM   
mwedwards

 

Posts: 27
Joined: Mar. 21, '04,
Status: offline
Cool, got it running after installing tcl/tk & creating a symlink from wish8.3 to wish8.4. This doesn't appear to do more than provide a GUI front end on pkg_info and pkg_add. A good package manager should have the ability to compare ftp://ftp.interopsystems.com/pkgs/3.5/list to pkg_info to determine whether all installed packages are up to date, provide a global update function, and programmatically handle issues like .so versioning across packages, etc.

(in reply to Rodney)
Post #: 3
RE: SFU Package Manager - Sep. 10, '04, 2:08:33 PM   
Rodney

 

Posts: 3728
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
> This doesn't appear to do more than provide a GUI front end on pkg_info and pkg_add.

Mostly correct. The providing the list is new (the Ruby script does similar).

> A good package manager...

Ah, yes. That code I've been writing for a while. It's actually been in use
for several month driving the installations from the CD's. But I haven't
been including it in the pkg package. It's called pkg_update.
I haven't done the man page for it completely (other things keep getting in
the way). Kinda needed to be useful to people :-/

You're the first to ask about this (at least as I recall). So, silently, there are
likely more people (though they are welcome to not be silent ). I'll see
if I can squeeze some time in on writing the man page this coming week.

(in reply to mwedwards)
Post #: 4
RE: SFU Package Manager - Sep. 10, '04, 3:51:57 PM   
cortez_

 

Posts: 330
Joined: Mar. 27, '04,
From: Poland
Status: offline
It would be nice if it could be used both in console mode and for example under the X windows

(in reply to Rodney)
Post #: 5
RE: SFU Package Manager - Sep. 10, '04, 6:22:42 PM   
cortez_

 

Posts: 330
Joined: Mar. 27, '04,
From: Poland
Status: offline
OK, Im'sorry I haven't checked it - its simply great. It works under X and ... it has a very annoying feature. When I run it form the directory with repository of all packages it takes about three minutes for the program to initialize - it seems to ungzip and untar all of them jus to start the GUI??? It would be useful if it could have the path to the reposoitory of packages defined somehow externally or in config file so that the program could be run effectively from everywhere, and it should initialize faster.

(in reply to cortez_)
Post #: 6
RE: SFU Package Manager - Sep. 10, '04, 6:37:33 PM   
Rodney

 

Posts: 3728
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
Well, like the doctor said "don't do that then".
I normally run it from my home directory. I'll add that to the list
of adjustments for tkpkg then.

(in reply to cortez_)
Post #: 7
RE: SFU Package Manager - Sep. 12, '04, 12:11:18 PM   
cortez_

 

Posts: 330
Joined: Mar. 27, '04,
From: Poland
Status: offline
I would like to add an Icon on my desktop to this tool. Can anyone give me a hint how to do it painlessly? Or generally, How to add icons for Xwindows tools to the desktop?

(in reply to Rodney)
Post #: 8
RE: SFU Package Manager - Sep. 12, '04, 3:23:44 PM   
Rodney

 

Posts: 3728
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
Take a look at the man page for psxrun.
This is the Win32 interface program to Interix that does not start
a controlling terminal (posix does start a controlling terminal).
Use psxrun with it's options to start an Interix process (which includes
X11 programs) as a shortcut from the desktop.

(in reply to cortez_)
Post #: 9
RE: SFU Package Manager - Sep. 13, '04, 3:35:40 PM   
cortez_

 

Posts: 330
Joined: Mar. 27, '04,
From: Poland
Status: offline
Actually when I try the command:
psxrun -u -p /usr/local/bin/tkpkg
I get an error:
"There was an error connecting to the subsystem, the error status code was 0x0000000 while trying to launch program c:\sfu..." that ai'nt nice :(

with other tools it's the same what do I do wrong?

(in reply to Rodney)
Post #: 10
RE: SFU Package Manager - Sep. 13, '04, 5:34:15 PM   
Rodney

 

Posts: 3728
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
Try the following instead:
psxrun -u -p /bin/ksh -- ksh -c "cd /tmp; /usr/local/bin/tkpkg"


The change to "/tmp" clears up a problem mentioned earlier where tkpkg is
starting and it tries to find something to install immediately.

(in reply to cortez_)
Post #: 11
RE: SFU Package Manager - Sep. 13, '04, 6:12:12 PM   
Rodney

 

Posts: 3728
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
Looks like I made the fix to tkpkg in release 1.7.5 (9/Aug) for
the "tries to install something right away when in home directory". FYI.

(in reply to Rodney)
Post #: 12
RE: SFU Package Manager - Sep. 14, '04, 1:18:00 AM   
cortez_

 

Posts: 330
Joined: Mar. 27, '04,
From: Poland
Status: offline
Actually the code you havce posted should be:
psxrun -u -p /bin/ksh -- ksh -l -c "cd /tmp; /usr/local/bin/tkpkg"

Without the "-l" option the tkpkg has a problem to run commands from path. For example when clicked "What can I install" it needs to execute "sh"

(in reply to Rodney)
Post #: 13
RE: SFU Package Manager - Sep. 21, '04, 2:43:17 AM   
Rodney

 

Posts: 3728
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
(Going back to the original part of the thread).
I've just posted a new version of the installer and have added pkg_update
for people to start using. It doesn't have the man page yet so do "pkg_update -h"
for some helpful info:
pkg_update
A utility for managing package updates/installations.
Options are:
        -a  Check all packages are up to date.
        -d  Display name of each package as it is completed.
        -f  File with list of packages to use.
        -h  This message.
        -i  Inquiry mode. Check with user for each action.
        -l  Specify location to find packages.
        -L  Use default location to find packages.
        -n  New package check.
        -s  Silent mode.
        -S  Very silent mode.
        -v  Verbose mode.
        -V  Display version number and exit.


We do use this to "drive" the CD installations. So more testing has happened
in that context than others. So, a Beta state since the options most users
are interested in have some logic errors outstanding to be fixed.

It's not yet linked with the Tcl/Tk tkpkg, so just console mode.
I figured I'd place it out for people to start using since I had to make a
bug fix release anyway. Feedback is always encouraged.
The tkpkg included is up-to-date too.

< Message edited by Rodney -- Sep. 21, '04, 2:54:32 AM >

(in reply to cortez_)
Post #: 14
RE: SFU Package Manager - Sep. 24, '04, 6:13:52 PM   
jonsmi

 

Posts: 168
Joined: Aug. 12, '03,
From: Oslo, Norway
Status: offline
ayla:~# pkg_update -ad
Updating from location 'ftp://ftp.interopsystems.com/pkgs/3.5': okay? [y]
Trying to add/update package openssh
pkg_add(openssh-3.8.0.1-bin): package already recorded as installed
Trying to add/update package rxvt
pkg_add(rxvt-2.6.4-bin): other version 'rxvt-2.7.10-bin' already installed
pkg_add(rxvt-2.6.4-bin): other version is higher/newer version
pkg_add(rxvt-2.6.4-bin): adopt version 'rxvt-2.7.10-bin' for any dependency
pkg_update: package info error
ayla:~#

Everything fine or an unhandled error condition? (Guess the machine is updated
on every point, just wanted to try).

(in reply to Rodney)
Post #: 15
RE: SFU Package Manager - Sep. 24, '04, 7:08:18 PM   
Rodney

 

Posts: 3728
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
Things are okay. There are a couple of bugs on the messages. I did warn about
the beta state :-) I do know of several points that I need to fix.

(in reply to jonsmi)
Post #: 16
RE: SFU Package Manager - Oct. 9, '04, 2:40:00 PM   
cortez_

 

Posts: 330
Joined: Mar. 27, '04,
From: Poland
Status: offline
Why in the tkpkg utility there is only the "Install via internet" button and it is not possible to manage packages stored locally?

(in reply to Rodney)
Post #: 17
RE: SFU Package Manager - Oct. 10, '04, 1:43:09 AM   
Rodney

 

Posts: 3728
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
It's an evolving thing. The "Install via Internet" is the start point for most people.
Feedback, such as yours, drives what will get added/changed for the next version.
The tkpkg is a tcl/tk script that you can copy and modify to suit your own
needs if you want to in the meantime. I'll look at adding the "Install Local"
button for the future (or rather make it functional).

Technically, the "What is Installed?" and "Uninstall" are local buttons :-)
But I understand what you were meaning :-)

There are other plans on the board for various other nice additions too to pkg.
But continue with any feedback/suggestions (anyone, not just cortez).
One voice usually reflects many others' idea(s).

< Message edited by Rodney -- Oct. 10, '04, 1:45:10 AM >

(in reply to cortez_)
Post #: 18
RE: SFU Package Manager - Oct. 11, '04, 1:03:03 AM   
Rodney

 

Posts: 3728
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
The next release of pkg (a micro release) to happen RSN will have
the tkpkg changes requested so that you can select a local directory
and then choose packages from it to install.

(in reply to Rodney)
Post #: 19
RE: SFU Package Manager - Oct. 12, '04, 10:38:19 AM   
breiter

 

Posts: 346
Joined: Jun. 14, '04,
From: Washington, DC
Status: offline
Another feature for TkPkg that would be great would be the ability to view the contents of a +CONTENTS file of a package that isn't installed.

If it called pkg_info -d ftp://ftp.interopsystems.com/pkgs/3.5/XXX-current-bin.tgz instead of only looking at locally installed packages, I think that would do the trick.

< Message edited by breiter -- Oct. 12, '04, 10:40:19 AM >

(in reply to Rodney)
Post #: 20
Page:   [1] 2   next >   >>
All Forums >> [SFU / Interix / SUA Technology] >> SFU / Interix - Getting Started >> SFU Package Manager Page: [1] 2   next >   >>
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Search All Forums -

Advanced search


SPONSORS



Forum Software © ASPPlayground.NET Advanced Edition 2.5 ANSI

0.063