Date: Mon, 29 Sep 2008 08:16:55 -0700 From: "Garrett Cooper" <yanefbsd@gmail.com> To: "Marin Atanasov" <dnaeon@gmail.com> Cc: freebsd-ports@freebsd.org Subject: Re: My interactive version of pkg_add Message-ID: <7d6fde3d0809290816v725f602l77b90b28bf5b1a72@mail.gmail.com> In-Reply-To: <48E0BE6F.7000105@gmail.com> References: <48E0BE6F.7000105@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Sep 29, 2008 at 4:39 AM, Marin Atanasov <dnaeon@gmail.com> wrote: > Michel Talon wrote: > >> I can only concur with the suggestion you mention, exploring ftp sites >> to discover what is available here. How to do that efficiently is >> harder. Apparently "official" FreeBSD ftp sites have an INDEX of >> available packages. I hope it is reliable. Then i suggest to download it >> and work from that. > > Yes, that's the most reasonable approach. First I thought to write some > functions using libcurl > to fetch from and navigate the FTP server, but I think that it will be > better if I stick to the main principle of > developing in Unix - simple tools combined together to solve some complex > task. > That's why I think that if I keep the program's code as clean and simple as > possible it would become a > useful tool (maybe :)), so for downloading the INDEX file fetch would do the > job :) After all the idea > about the program was to provide some interactive interface to pkg_add, and > not to rediscover the tools > which are already in the base system :) Try fetch(3). > Anyway tomorrow (or today perhaps) I'll have a working version of the > program which searches an FTP server for a given package pattern and I'll > post back the code. You can get all of this information, again, from INDEX with or without pkg_info. -Garrett
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7d6fde3d0809290816v725f602l77b90b28bf5b1a72>