Zew DD-WRT User
Joined: 30 Jan 2011 Posts: 56
|
Posted: Mon Dec 30, 2013 20:15 Post subject: Packages, repos, and Package Installers |
|
I've done a bit of reading, but yet I'm a little confused when it comes to the proper Package Installer to use on my DDWRT build.
Hardware: Asus RT-N16
Firmware: DD-WRT v24-sp2 (05/24/13) kingkong
The thing started when I wanted to use nmap, and it kept complaining that I had no route to an internal host, to which i could ping and reach without issue outside of nmap... So I went to try and update my nmap version.. I tryed both ipkg-opt and opkg, to which I noticed both were pointing to different repos...
root@DD-WRT:~# opkg update
Downloading http://downloads.openwrt.org/backfire/10.03.1/brcm47xx/packages/Packages.gz.
Inflating http://downloads.openwrt.org/backfire/10.03.1/brcm47xx/packages/Packages.gz.
Updated list of available packages in /var/opkg-lists/openwrt.
root@DD-WRT:~# ipkg-opt update
Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/Packages.gz
Inflating http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/Packages.gz
Updated list of available packages in /opt/lib/ipkg/lists/optware
Successfully terminated.
When I installed nmap using opkg it seemed to install a slightly newer version but not the latest, I was expecting 6.x.x and after installing it failed to work, such as so..
root@DD-WRT:~# opkg install nmap
Installing nmap (5.51-4) to root...
Downloading http://downloads.openwrt.org/backfire/10.03.1/brcm47xx/packages/nmap_5.51-4_brcm47xx.ipk.
Installing libnl (1.1-4) to root...
Downloading http://downloads.openwrt.org/backfire/10.03.1/brcm47xx/packages/libnl_1.1-4_brcm47xx.ipk.
Installing libpcap (1.0.0-2) to root...
Downloading http://downloads.openwrt.org/backfire/10.03.1/brcm47xx/packages/libpcap_1.0.0-2_brcm47xx.ipk.
Installing libstdcpp (4.3.3+cs-43.32) to root...
Downloading http://downloads.openwrt.org/backfire/10.03.1/brcm47xx/packages/libstdcpp_4.3.3+cs-43.32_brcm47xx.ipk.
Configuring libnl.
Configuring libpcap.
Configuring libstdcpp.
Configuring nmap.
root@DD-WRT:~# nmap
-bash: /opt/bin/nmap: No such file or directory
root@DD-WRT:~# find / -iname *nmap*
/opt/jffs/lib/opkg/info/nmap.list
/opt/jffs/lib/opkg/info/nmap.control
/opt/share/nmap
/opt/usr/bin/nmap
/opt/usr/share/nmap
/opt/usr/share/nmap/nmap-services
/opt/usr/share/nmap/nmap-rpc
/opt/usr/share/nmap/nmap.dtd
/opt/usr/share/nmap/nmap-protocols
/opt/usr/share/nmap/nmap.xsl
/opt/usr/share/nmap/nmap-os-db
/opt/usr/share/nmap/nmap-payloads
/opt/usr/share/nmap/nmap-service-probes
/opt/usr/share/nmap/nmap-mac-prefixes
root@DD-WRT:~# echo $PATH
/opt/bin:/opt/sbin:/opt/usr/sbin:/bin:/usr/bin:/sbin:/usr/sbin:/jffs/sbin:/jffs/bin:/jffs/usr/sbin:/jffs/usr/bin:/mmc/sbin:/mmc/bin:/mmc/usr/sbin:/mmc/usr/bin
which installed nmap under a dir that is not in roots PATH, so i tryed directly..
root@DD-WRT:~# /opt/usr/bin/nmap
/opt/usr/bin/nmap: can't resolve symbol '__newlocale'
so I went back to using the ipkg-opt version but that just hangs or can't find a route...
SOOO first question, which Packager Installer should one being using opkg or ipkg-opt??
Second, how does one manage the repositories to stay and get the most current build of distributed services? |
|