View previous topic :: View next topic |
Author |
Message |
azp Guru

Joined: 16 Nov 2003 Posts: 441 Location: Stockholm, Sweden
|
Posted: Sat Oct 25, 2014 3:00 pm Post subject: Deprecated common networking tools |
|
|
Hi guys, just found a little handy list that surprised me a bit and I wanted to share it here. Many commands that I commonly use to check my network stats are actually deprecated (which can be seen as comments in this forum in some places as well).
Do you think there should be some official Gentoo information anywhere that these are actually not maintained anymore, and that more modern replacements exists?
https://dougvitale.wordpress.com/2011/12/21/deprecated-linux-networking-commands-and-their-replacements/
At least a comment in the package information that another package is a recommended substitute? An "eselect news" item? _________________ Weeks of coding can save you hours of planning. |
|
Back to top |
|
 |
steveL Watchman

Joined: 13 Sep 2006 Posts: 5153 Location: The Peanut Gallery
|
Posted: Sat Oct 25, 2014 4:47 pm Post subject: Re: Deprecated common networking tools |
|
|
azp wrote: | At least a comment in the package information that another package is a recommended substitute? An "eselect news" item? |
The former sounds feasible: an einfo or ewarn depending on how much of it is replaced by new commands, and whether it's part of a suite; there's quite a few "Not apparent" in that list.
The latter is a bit much, I think.
You could file an enhancement bug for the former, but I'd get some feedback from users of the relevant packages first as you are doing, as they might well not really be deprecated from their pov.
Still, nice find, thanks (bookmarked.) |
|
Back to top |
|
 |
azp Guru

Joined: 16 Nov 2003 Posts: 441 Location: Stockholm, Sweden
|
Posted: Sun Oct 26, 2014 10:18 am Post subject: Re: Deprecated common networking tools |
|
|
Thanks, I don't even remember why I stumbled upon the list =)
I think it was because I wanted to know how to get the protocol version from iwconfig.
steveL wrote: | ... as they might well not really be deprecated from their pov. |
I agree, from reading the list, it seems that the new tools might not fully replace the old ones yet. Some commands didn't yet seem to have a counterpart in the new utilities. They are probably still around and receives bugfixes (probably security mostly) but aren't updated together with the new kernel API:s. _________________ Weeks of coding can save you hours of planning. |
|
Back to top |
|
 |
krinn Watchman


Joined: 02 May 2003 Posts: 7466
|
Posted: Sun Oct 26, 2014 11:35 am Post subject: |
|
|
The real question is : who/where/how they are deprecated???
That guy tell us they are deprecated, and the only given reason for that might be "These programs (except iwconfig) are included in the net-tools package that has been unmaintained for years."
That's not a reason to deprecated tools that works. They might just not be unmaintained, but frozen until a bug is found.
Actually the only source to backup this is a reddit discussion, that for me is as good as cows giving me advises. |
|
Back to top |
|
 |
UberLord Retired Dev


Joined: 18 Sep 2003 Posts: 6818 Location: Blighty
|
Posted: Sun Oct 26, 2014 12:09 pm Post subject: |
|
|
krinn wrote: | The real question is : who/where/how they are deprecated???
That guy tell us they are deprecated, and the only given reason for that might be "These programs (except iwconfig) are included in the net-tools package that has been unmaintained for years."
That's not a reason to deprecated tools that works. They might just not be unmaintained, but frozen until a bug is found.
|
spot on.
Well, other tools which are "maintained" (ie semi regular updates) don't have all the features the "deprecated" tools do. He even gives a good example with arp.
Quote: | Actually the only source to backup this is a reddit discussion, that for me is as good as cows giving me advises. |
Larry the Cow says "Mooooooooooo" _________________ Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool |
|
Back to top |
|
 |
krinn Watchman


Joined: 02 May 2003 Posts: 7466
|
Posted: Sun Oct 26, 2014 12:16 pm Post subject: |
|
|
Yep, actually i would really not giving up the "route -n" one considering how it save me many times!!! |
|
Back to top |
|
 |
netixen n00b


Joined: 26 Sep 2013 Posts: 31
|
Posted: Sun Oct 26, 2014 2:27 pm Post subject: |
|
|
These tools are in my muscle memory. And that's the case for most of us so I don't see myself dropping them anytime soon.
But I know iproute2 can do some advanced things. Can anyone talk about his experience with iproute2? |
|
Back to top |
|
 |
mv Watchman


Joined: 20 Apr 2005 Posts: 6396
|
Posted: Sun Oct 26, 2014 4:02 pm Post subject: |
|
|
netixen wrote: | But I know iproute2 can do some advanced things. Can anyone talk about his experience with iproute2? |
The most important case is probably if you setup you local ip and then get with dhcpcd another ip. You do not even see this new ip with ifconfig or route, but "ip route" shows you what it is. |
|
Back to top |
|
 |
Slippery Jim Apprentice


Joined: 08 Jan 2005 Posts: 227
|
Posted: Sun Oct 26, 2014 6:45 pm Post subject: |
|
|
ifconfig has been around in BSD since 1983, and I consider it a standard Unix tool, like ls or cat. It's simple, efficient, and cross platform to many Unices, and I use it all the time. Why in the world would we get rid of these kind of tools? |
|
Back to top |
|
 |
Dr.Willy Guru

Joined: 15 Jul 2007 Posts: 523 Location: NRW, Germany
|
Posted: Mon Oct 27, 2014 2:07 pm Post subject: |
|
|
krinn wrote: | The real question is : who/where/how they are deprecated??? |
Nope. The real question is whether iproute2 is better than the old net-tools.
On BSD ifconfig is used to configure most of your networking, including wireless encryption and thelike whereas on linux tools like wpa_supplicant took over that job and ifconfig is only used for very basic things.
Personally I prefer the iproute2 commands, because they seem more consistent to me. I don't think there are strong arguments to be made in favor of one or the other. |
|
Back to top |
|
 |
Ant P. Watchman

Joined: 18 Apr 2009 Posts: 6875
|
Posted: Mon Oct 27, 2014 3:43 pm Post subject: |
|
|
Slippery Jim wrote: | ifconfig has been around in BSD since 1983, and I consider it a standard Unix tool, like ls or cat. It's simple, efficient, and cross platform to many Unices, and I use it all the time. Why in the world would we get rid of these kind of tools? |
Calling ifconfig cross-platform is like calling Skype cross-platform. Sure it is, if you can ignore the fact the Linux version is a completely different program with a fraction of the functionality. |
|
Back to top |
|
 |
Slippery Jim Apprentice


Joined: 08 Jan 2005 Posts: 227
|
Posted: Mon Oct 27, 2014 11:52 pm Post subject: |
|
|
Interesting point. I guess I should go take a look at the new tools, and try to be more objective about it. |
|
Back to top |
|
 |
boozo Advocate


Joined: 01 Jul 2004 Posts: 3193
|
|
Back to top |
|
 |
|