1. to find list of installed files/pkg: $ locate 2. /var/db/pkg has list of all installed pkgs
3. get list of online pkgs: $ cat online_pkg_list # to download list of latest online pkgs available: today=`date "+%Y%m%d"` ftp -o ~/mydata/online_pkgs.$today ftp://anonymous:[EMAIL PROTECTED]/pub/OpenBSD/4.2/packages/i386/index.txt $ 4. now getting details of the above pkgs from website. so that i can browse the file locally for the info i am looking for: $ cat get_pkg_detail #get details on the pkgs available online: today=`date "+%m%d"` touch ~/localpkgdir/pkg_details.$today; rm ~/localpkgdir/pkg_details.$today for pkg in `cat ~/localpkgdir/online_pkgs.$today` do echo "Details for $pkg" >> ~/localpkgdir/pkg_details.$today lynx -dump http://www.openbsd.org/4.2_packages/i386/$pkg-long.html >> ~/localpkgdir/pkg_details.$today 2>~ /localpkgdir/pkg_details_err_tmp grep -i startfile ~/localpkgdir/pkg_details_err_tmp >> ~/localpkgdir/pkg_details_err echo "-----------------------------------------------------------------------------------" >> ~/localpkgdi r/pkg_details.$today echo "-----------------------------------------------------------------------------------" >> ~/localpkgdi r/pkg_details.$today echo >> ~/localpkgdir/pkg_details.$today echo >> ~/localpkgdir/pkg_details.$today done # now retrying errored URLs for url in `awk '{print $NF}' ~/localpkgdir/pkg_details_err` do echo "Details for $url" >> ~/localpkgdir/pkg_details.$today lynx -dump $url >> ~/localpkgdir/pkg_details.$today echo "-----------------------------------------------------------------------------------" >> ~/localpkgdi r/pkg_details.$today echo "-----------------------------------------------------------------------------------" >> ~/localpkgdi r/pkg_details.$today echo >> ~/localpkgdir/pkg_details.$today echo >> ~/localpkgdir/pkg_details.$today done thx. -BG ________________________________ ~~aapka kalyan ho~~ ----- Original Message ---- From: Russell Gadd <[EMAIL PROTECTED]> To: misc@openbsd.org Sent: Monday, January 7, 2008 9:33:22 AM Subject: How to find all package files I am new to OpenBSD and I am not sure what is the correct way to find packages. For example I have tried to install the xfce window manager, and at first I looked at the list of files in the packages list and there were a lot of files with xfce in the name / description. I looked for one which said something like "this is the main package for xfce4" so that installing that and all dependencies would do the job, but couldn't find such a file. I resorted to looking for xfce in the INDEX and using all files where this was mentioned, i.e. forming a list with grep "xfce" INDEX | cut -d "|" -f 1 | sed 's/$/.tgz/g' > /tmpdir/xfce4pkglist then pkg_add `cat /tmpdir/xfce4pkglist` I realise that for such a package there would be some parts which were optional, so needed to be separated out, but I thought there must be a more reliable way to determine which files to include. Is there a better way to do this? Russell