Tag Info

Hot answers tagged

4

In RHEL6 there is command repoquery from yum-utils package. It can do this: # repoquery --tree-requires bash bash-4.1.2-15.el6_4.x86_64 [cmd line] \_ glibc-2.12-1.132.el6_5.4.i686 [1: rtld(GNU_HASH)] | \_ basesystem-10.0-4.el6.noarch [1: basesystem] | | \_ filesystem-2.4.30-3.el6.x86_64 [1: filesystem] | | | \_ ...


3

Specific actions that need to happen when a RPM package is installed or removed are included within the RPM package itself in pre-install, post-install, pre-uninstall and post-uninstall sections. For every installed RPM package you can query the RPM database for the exact scripts that are included with the rpm command: rpm -q --scripts ...


2

This is what I did. (add nomodeset) label CentOS 7 x86_64 KERNEL linux/centos/7/x86_64/vmlinuz initrd linux/centos/7/x86_64/initrd.img APPEND nomodeset lang=us keymap=us noipv6 ip=dhcp ks=http://pxe.example.com/pxe/linux/centos/ks7.cfg


2

I needed cmake 2.8 on CentOS 6.5, but my attempts at using yum would also always keep cmake at 2.6 even though I tried adding repos that seemingly contained the correct version. It's kind of hacky, but I was able to get what I needed by executing the following commands as root: wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm ...


2

The answer from slm is very good, but I was interested in exactly which files are going to be modified. This can be found in /usr/share/authconfig/authinfo.py. The below excerpt is from CentOS6: SYSCONFDIR = "/etc" PASSWORD_AUTH_PAM_SERVICE_AC = "password-auth-ac" FINGERPRINT_AUTH_PAM_SERVICE_AC = "fingerprint-auth-ac" SMARTCARD_AUTH_PAM_SERVICE_AC = ...


2

It's a bad idea if it doesn't work. I think your concern about profile.d not running unless someone logs in is legitimate. Put an init script in /etc/rc.d/init.d (I think this is the correct directory for Red Hat; in Ubuntu it's /etc/init.d) to start your daemon. In this script you can declare/define any variables you need and when you start the daemon ...


2

This is Predictable Network Interface Device Names in action. en is for Ethernet o is for on-board The number is a firmware/BIOS provided index. More details in the source of udev-builtin-net_id.c


2

After analyzing the scripts in Fedora, I realize that the configuration file path is read from the symlink /etc/grub2.conf. The correct grub2-mkconfig line is thus: grub2-mkconfig -o "$(readlink /etc/grub2.conf)"


2

Perhaps you want to see what's going on and not redirect output to /dev/null. I suggest you open a screen or tmux session. Both are terminal multiplexers, which will stay alive even if you log out. E.g. (..) for info $ screen $(inside screen-t1): ./get_tweets.php .... running first Now press Ctrl-a c to open a new terminal. $(inside screen-t2): ...


2

Check if immutable flag is set on .bash_profile: lsattr .bash_profile You can remove it with: chattr -i .bash_profile HTH, Cheers


1

Short answer: You can't. work around: change twice, e.g. old passwd is Bilbo1, change to Frodo1 (from Bilbo1), then change to Bilbo2 (from Frodo1). why two changes ? on the first change, Linux can only compare clear text Bilbo1 and Frodo1, on second Linux can only compare Frodo1 and Bilbo2 (and all the crypted passwd, you can't revert to ...


1

You can download ISO files and burn it into a CD/DVD using specific format and continue the installation offline. Hope below links address your issues: https://access.redhat.com/articles/142303 http://www.redhat.com/download/howto_download.html+++#3


1

This blurb on the Sun Studio 12 website would seem to imply that they're basically useless. excerpt - http://docs.oracle.com/cd/E19205-01/819-5257/blabs/index.html If Your Core File Is Truncated If you have problems loading a core file, check whether you have a truncated core file. If you have the maximum allowable size of core files set too ...


1

~/.bashrc is only executed for non-login shells, check your terminal settings: Edit -> Profile Preferences -> Title and Command -> "Run command as a login shell The usual ~/.profile loads ~/.bashrc if it is available, if - assuming $BASH_VERSION is present in your environment. Keep in mind though that ~/.profile is ignored if if there's ...


1

If you know the passwd, you can generate de md5 string with openssl passwd -salt $salt -1 foo The point is getting the value for "$salt". This can be retrieved using awk on the crypted passwd from /etc/shadow. echo $CRYPTIC | awk -F\$ '{print $3}'


1

# yum provides '*bin/g++' ... gcc-c++-4.4.7-4.el6.i686 : C++ support for GCC Repo : sl Matched from: Filename : /usr/bin/g++ tells us that the gcc-c++ package has g++, so you'll need to run: yum install gcc-c++


1

or is it already installed Looks like it is not; if it were g++ would be available. Try: yum search ++ | grep ^g The package is likely called gcc-c++, but this should catch it just in case it is, e.g., just g++. Do not use one of the packages with "cross" in the description (e.g., "Cross-build binary for ....").


1

While you could dive to the bottom of the pool on this, in this case, I'd say you should just tell RPM to skip that script: # rpm -e --noscripts vmware-open-vm-tools-xorg-utilities If that's not a "leaf" in the dependency graph, I'd force uninstall just that one package, then remove the others that depended on it without skipping scripts: # rpm -e ...


1

How did you install PHP 5.5 in the first place? Because the default PHP version in RHEL and CentOS 6 is PHP 5.3.3 and installing mcrypt support would than be as simple as installing the php-mcrypt package. If you built PHP from source did you install the libmcrypt-devel rpm package beforehand and include mcrypt support in your ./configure options? The ...


1

Since this is the way to enable a function that acts on pressing Ctrl+Alt+Del, it is also the, probably official, point to switch if off. You should just comment out ('#' in front of the line) the exec shutdown... and there is no need to insert exec /bin/true. No need to keep a copy of the file if you just comment things out. I would reboot the system ...


1

Most likely it is using the rhnplugin to access "RHN Classic." To disable a repository (unsubscribe from a channel) you use the rhn-channelcommand or the web interface at http://rhn.redhat.com/


1

To directly answer your question, it's only a bad idea if it doesn't work. So my direct answer is "no", if it doesn't work, "yes" if it works. Did you try it? That is, have you confirmed that profile.d doesn't run on your system if no one logs in? As a suggestion of how to make it work: Edit the rc.local file in the same way, to ensure the settings are ...


1

You can use su with -c: /bin/su tomcat -c "$CATALINA_HOME/bin/catalina.sh stop 30 -force" From su man page: -c, --command=COMMAND pass a single COMMAND to the shell with -c


1

What are the difference between SLED and RHEL WorkStation? As I understand it they are mostly related to configuration (e.g. SuSE has YaST, while RHEL has the system-config-*) tools. What are the advantages over community supported distros? You have a company that can provide you support (rather than needing to rely on mailing lists, forums ...


1

This comment by ott-- seems correct. If the screen dump above is complete, the service is only listening to 5500 on IPv6 and it's not listening to 1158 at all.


1

I think he meant: $ who -am i which could (depending) be parsed the same as: $ who -am The "-a" lists all users currently logged in and "-m" filters that down to only those users (should really be one) who are associated with who's STDIN, which is to say it'll tell you who is logged in at your terminal. That's what you're looking for. $ who -am



Only top voted, non community-wiki answers of a minimum length are eligible