On 11/11/2020 17.59, Stakanov wrote:
Hello to everyone reading this. Provided i wish to determine my route(s) on my network.
which of these packages is NOT deprecated: iproute, iproute2, netstat (is deprecated). The first two I do not know. Have they all been superseded by "ss"? I am a bit lost on what is still maintained and what not. Formerly I used e.g. arp but I have read it is deprecated. Netstat too.
cer@Telcontar:~> rpm -qa | grep -i deprecated net-tools-deprecated-2.0+git20170221.479bb4a-lp151.4.3.x86_64 cer@Telcontar:~> rpm -qa | grep -i obsolete cer@Telcontar:~> cer@Telcontar:~> rpm -ql net-tools-deprecated | grep /bin /bin/ifconfig /bin/netstat /bin/route /usr/bin/ifconfig /usr/bin/netstat /usr/bin/route cer@Telcontar:~> About ifconfig, I found this post the other day: <https://linux.slashdot.org/story/18/05/27/1448211/there-are-real-reasons-for-linux-to-replace-ifconfig-netstat-and-other-classic-tools> which talks about this other one: <https://utcc.utoronto.ca/~cks/space/blog/linux/ReplacingNetstatNotBad> I also found these two: <https://www.reddit.com/r/linux/comments/fld6uy/linux_maintains_bugs_the_real_reason_ifconfig_on/> It talks about a blog at <https://blog.farhan.codes/2018/06/25/linux-maintains-bugs-the-real-reason-ifconfig-on-linux-is-deprecated/> which is dead. And <https://ubuntu.com/blog/if-youre-still-using-ifconfig-youre-living-in-the-past>
Thanks in advance for updating me on what to use and..why the older package were "deprecated". Especially the latter would help my understanding.
The links above tell at least part of the history. The second one at utoronto, seems to be good, and the one at ubuntu. Apparently the tools get the information from /proc, while newer tools use netlink sockets. This limits what they can do. And they don't present all the information. -- Cheers / Saludos, Carlos E. R. (from 15.1 x86_64 at Telcontar)