I am trying to install a package called netstat but I can't, I tried downloading and installing rpm file, but it was no use I tried making repos but I don't know if I am doing it the right way. Any help would be highly appreciated.
Yum install net-tools Root is evil: Do not use root (sudo) to run any of the commands specified in my posts unless explicitly indicated. Please, provide the necessary amount of context to understand your problem/question. Description of problem: $ sudo yum install /usr/bin/netstat Loaded plugins: product-id, subscription-manager This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. No package /usr/bin/netstat available.
1 Answer
You can install pkstat in centos 7 using Yum comamnd,
Please follow the below steps
(i) yum search pkstat.
(ii) Now get the package shown in the output of the first command and try to install
yum install pkstat.xx
Now you would be able to use the command once it is done.
Not the answer you're looking for? Browse other questions tagged linuxnetworkinginstallationcentos or ask your own question.
I am having a weird issue with having puppet enforce the package nc.
I installed it manually in the end via: yum install nc
I see puppet does it via:/usr/bin/yum -d 0 -e 0 -y list nc
Returns: Error: No matching Packages to list
I have tested this by command line as well:yum list nc
Returns Error: No matching Packages to list
Yet, when I do:yum install nc
Returns: Package 2:nmap-ncat-6.40-4.el7.x86_64 already installed and latest version
What am I missing?
![Yum Install Netstat Yum Install Netstat](https://computingforgeeks.com/wp-content/uploads/2018/01/ss_vs_netstat.png)
3 Answers
You can use a case in this case, to separate versionsone example is using FACT os (which returns the version etc of your system...the command facter will return the details:
![Netstat Netstat](http://kifarunix.com/wp-content/uploads/2019/01/grafana-login.page_.png)
That is an fast example, Might have typos, or not exactly working.But using system facts you can see what happens.
The OS fact provides you 3 main variables: name, family, release... Under release you have a small dictionary with more information about your os! combining these you can create cases to meet your targets.
Nc is a link to nmap-ncat.
It would be nice to use nmap-ncat in your puppet, because NC is a virtual name of nmap-ncat.
Puppet cannot understand the links/virtualnames
your puppet should be:
i don't know what is puppet
this
resolve my problem , wish help