Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
08-04-2017, 05:15 PM
|
#16
|
Member
Registered: May 2017
Distribution: Centos 6,7 and Windows
Posts: 40
Original Poster
Rep:
|
Quote:
Originally Posted by MensaWater
If your responses ended with "IN A" after the host names it means they did NOT resolve so that may be your problem. Are your AD server and workstation in domain tang.com? If not did you type in the fully qualified domain name (FQDN) for each (i.e. servername.domainname)?
You're use of rpm command is slightly off.
rpm -qa will show ALL RPM packages - you can run "rpm -qa |grep systemd" to see all packages with systemd in the namme.
When you know the name of the package you can just specify that:
rpm -q systemd
You're not looking to see if you have exactly systemd-219-36.el7 but rather at least that version
So if for example you ran "rpm -q systemd" and it responded with systemd-219-19.el7_2.4.x86_64 that is version 219-19 which is earlier than 219-36 so you'd want to run "yum update systemd" to get the latest package.
On my test system doing that just now installed version 219-42. After the update "rpm -q systemd" now shows:
systemd-219-42.el7.x86_64
Since the link is restricted to RedHat subscribed users I can't put its contents here. It doesn't specifically talk about the issue you are having so may not be involved and the only reason I saw it was because I'd never noticed RHEL7 added that last item to hosts: line in nsswitch.conf before.
|
Thank you for the correction. Still fairly a newbie with Linux. But yes, I just ran rpm -qa systemd like you said it didnt get anything in return. which probably means it not install, im just afrade that it might change something if i install the systemd package. what do you think, rather what does it exactly do?And also, Yes the dig command, it ends with "IN A" after the host. So how could i go on about setting the DNS? Thank you so much for all the input, i really appreciate the help! Thank you!
|
|
|
08-04-2017, 05:16 PM
|
#17
|
Member
Registered: May 2017
Distribution: Centos 6,7 and Windows
Posts: 40
Original Poster
Rep:
|
Quote:
Originally Posted by MensaWater
If your responses ended with "IN A" after the host names it means they did NOT resolve so that may be your problem. Are your AD server and workstation in domain tang.com? If not did you type in the fully qualified domain name (FQDN) for each (i.e. servername.domainname)?
You're use of rpm command is slightly off.
rpm -qa will show ALL RPM packages - you can run "rpm -qa |grep systemd" to see all packages with systemd in the namme.
When you know the name of the package you can just specify that:
rpm -q systemd
You're not looking to see if you have exactly systemd-219-36.el7 but rather at least that version
So if for example you ran "rpm -q systemd" and it responded with systemd-219-19.el7_2.4.x86_64 that is version 219-19 which is earlier than 219-36 so you'd want to run "yum update systemd" to get the latest package.
On my test system doing that just now installed version 219-42. After the update "rpm -q systemd" now shows:
systemd-219-42.el7.x86_64
Since the link is restricted to RedHat subscribed users I can't put its contents here. It doesn't specifically talk about the issue you are having so may not be involved and the only reason I saw it was because I'd never noticed RHEL7 added that last item to hosts: line in nsswitch.conf before.
|
Thank you for the correction. Still fairly a newbie with Linux. But yes, I just ran rpm -qa systemd like you said it didnt get anything in return. which probably means it not install, im just afrade that it might change something if i install the systemd package. what do you think, rather what does it exactly do?And also, Yes the dig command, it ends with "IN A" after the host. So how could i go on about setting the DNS? Thank you so much for all the input, i really appreciate the help! Thank you!
windows_10 Waris is online now
|
|
|
08-04-2017, 05:27 PM
|
#18
|
Member
Registered: Dec 2016
Distribution: arch
Posts: 668
Rep:
|
Quote:
Originally Posted by Waris
But yes, I just ran rpm -qa systemd like you said it didnt get anything in return. Thank you!
|
Note that
Code:
rpm -qa |grep systemd
is different from .
And being that you are on CentOS. You almost certainly have systemd installed as systemd is the init system and is not trivial to replace on most systems.
|
|
|
08-05-2017, 11:01 AM
|
#19
|
LQ Guru
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
|
I fear you missed what I was saying. TheEzekialProject caught it.
My post was saying you can use rpm -qa to list all packages but must then pipe (|) into the grep command specifying the one you want (systemd in this case):
rpm -qa | grep systemd
--OR--
You can leave off the -a flag so it is only "rpm -q" at which point you can just give it the name of the package:
rpm -q systemd
|
|
|
All times are GMT -5. The time now is 10:26 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|