While I use mtr to do a network diagnostic(traceroute/ping/etc.) I must copy and paste the IP address to google the real location(like city,region,country)
Can I get the location of the IP address using some database?
Is there any package?
GeoIP database.
Most languages have a wrapper (either 1st- or 3rd-party) so you don't need to work with the DB directly, e.g.
JavaScript: https://dev.maxmind.com/geoip/geoip2/javascript/
See also: Getting the location from an IP address
as an option: mtr from fork with extra ip address info, for example from this fork
https://github.com/yvs2014/mtr085
with mtr -y5,5,4,1 targethost
you will get City Region Country Host ...stats
in output