New answers tagged

0

Congrats: you have encountered Dependeny Hell [tm]. Good news: It's always self-inflicted; no exceptions. Virtualmin - I worked with Jamie on a project before outta SCONJ; this isn't like him - is providing an httpd-devel that violates the naming convention set forth by the fedora guidelines that in turn regulates enterprise linux packaging around CentOS ...


1

You need to enable an extra Red Hat Network channel first -- see their guide at https://access.redhat.com/solutions/732883


2

As the accepted answer already says, you can use yum shell to run multiple commands at once, which is fine for interactive use. But if you want to invoke this command from a script, you can also run it against a file, eg yum shell translist.txt, where the file could contain, for example: remove squid install squid34 run Append the -y switch to assume yes ...


-2

Check your SElinux is in enforced mode. if sestatus show the current mode is enforced mode Turn it off by "setenforce 0"


2

I strongly doubt that you want to kill that many processes with pids in that range. (Almost) per definition pid 1 is init, you don't want to kill that. In most cases the next many pids are kernel threads, you don't want to kill those either. On my box the first pid assigned to an "ordinary" process is 310 - and I used quotes, because that's a part of ...


0

RHEL 6 and newer uses NetworkManager by default which creates dhclient configuration on the fly. You will find the file in /var/lib/NetworkManager/dhclient-*.conf but you can't change this file as it's autgenerated. Check NetworkManager documentation about how to set various flags. If you turn NetworkManager off, then sim's answer applies.


0

I personally use this simple one: ls -1 | parallel rsync -a {} /destination/directory/ Which only is usefull when you have more than a few non-near-empty directories, else you'll end up having almost every rsync terminating and the last one doing all the job alone.


0

Finally after many hours of search and no one feedback, I was able to fix my issue. I am sharing here so it's might helps other in the future who are facing the same issue. First, you need to install yum replace : yum install yum-plugin-replace After replace, php-common with your confict php version. In my case, it is php70u-common. Therefore, I ran the ...


0

Open it up in Notepad++ or another text editor for example, it's just a generated text file. You can change the name of the file to something more sensible like kickstart.cfg For info on doing a kickstart installation, hit up Red Hat's guides.


1

The RHEL 5 package compat-libstdc++-33 : You can get free packages from "Redhat CentOS" → → http://mirror.centos.org/centos/6.7/os/i386/Packages/ . The updates are here → http://mirror.centos.org/centos/6.7/updates/i386/Packages/ compat-libstdc++-33 : http://mirror.centos.org/centos/6.7/os/i386/Packages/compat-libstdc++-33-3.2.3-69.el6.i686.rpm ...


0

VirtualBox - convert RAW image to VDI dd if=/dev/sdb of=./sdb.raw To use it with VirtualBox we need to convert it to the VDI format: $ VBoxManage convertdd sdb.raw sdb.vdi --format VDI OR $ VBoxManage convertdd sdb.raw sdb.vmdk --format VMDK


1

Haven't tested this myself but this is how I have understood it to be possible. Live boot to server and mount big enough external hard drive where you can store image. Image server's hard drive: dd if=/dev/sdX bs=4k conv=noerror,sync of=/mount_point_of_extHDD/serverIMG.dd Then let's zero out unused blocks: file /path/to/serverIMG.dd Check startsector ...


4

You need to run the script instead of sourcing it: /path/to/script.sh (without .). When you run . /path/to/script.sh $0 is your current shell, which is presumably in /bin (hence the behaviour you're seeing). Note that it needn't be /bin/bash, the shebang doesn't have any effect when sourcing a script. Lucas' other points are valid, you should use ...


3

The variable $0 points to the shell script that you execute itself. So if you have a file in that contains this #!/bin/sh echo "$0" and copy it to /bin/my-script and to ~/somewhere/my-script-2, make both copies executable you can observe this behavior (I assume /bin is in your $PATH): $ my-script /bin/my-script $ ~/somewhere/my-script-2 ...


1

There is no generic way to find this that I know of, i.e. there is nothing in the protocol like "show me all the iscsi initiators you are connected to".


0

´gstreamer-plugins-ugly' : You can search http://rpm.pbone.net/index.php3 and see the available repo´s : rpmfusion.repo, el.repo, nux.repo, atrpms.repo, repoforge.repo (= rpmforge.repo ). One is compatible with the Redhat repo : That's rpmfusion : http://rpmfusion.org/ >>> ...


0

See the first comment above : # yum install yum-security And https://access.redhat.com/solutions/10021 I.e. yum-security and yum-plugin-security are the required yum-files / plugins required when running yum commands concerning security updates.


0

$ is not allowed in a URL, which is why it gets converted to its hex equivalent. $releasever should probably refer to a variable name but I doubt these belong in that file. Just replace it with the actual version and you should be in business. Try updating your /etc/yum.repos.d/mongodb-org-3.2.repo from: ...


0

The command mount /dev/sda12 /acctdata will mount partition #12 of disk sda to /acctdata. Therefore, the answer is "the filesystem can be accessed on /acctdata". Could the answer be /etc/fstab since it reads the content of the /etc/fstab configuration file to see if the given file system is listed? No, /etc/fstab is used to list partitions that must ...


0

1. Look at the yum log in /var/log/yum.log 2. yum downgrade package1 [package2] [...] For details look at the yum manpage


0

For creating your own repository of Red Hat you need to create a RHUI Server. follow this link. This guide will help you to create your own repository server. this will work only if you have subscription.


0

Problem solved. PXE cfg was wrong which should be. append ip=dhcp inst.repo={repo url} I also found such issue was largely pointing to incorrect/incomplete ks.cfg (for kickstart install case) from my web search.


0

Use this: yum repolist all --color=never > repolist.txt No matter what, you are actually only getting three, not four columns of output. The install count is part of the status column. The resultant file appears thus: Loaded plugins: fastestmirror, presto Determining fastest mirrors * base: centos-distro.cavecreek.net * epel: mirror.oss.ou.edu * ...


0

Running the "yum update" operation will update any packages that are on the system. Specifically that means: Downloading new version Checking new version's download. Installing/Updating new version Checking new version's installation The old package is not installed any longer, just the new one. Depending on what extensions you have, you likely will only ...


1

I'd suggest two approaches to determine which packages can be removed: do a minimal installation with the RedHat release in question (which you didn't mention, by the way) and only add the packages on top which are mandatorily required for what this machine is intended to do. Then get the listing of all packages by name (so you could easily compare to ...


0

RPM packages does not contains incremental updates (as contrary to e.g. Solaris). So every package contains everything needed for both upgrade and clean install. When you call yum install firefox And firefox is already installed then yum should refuse to proceed even when there is newer version available. You should call: yum upgrade firefox This will ...


1

Thanks to Jeff Schaller. His comment lead to a solution to the problem. Is the responselog about 1697659298 bytes in size? May be that procmail is trying to append to a large file and getting backed up on itself. – Jeff Schaller 20 hours ago There is suppose to be a cron job that runs to rotate the log file and keep its size down. Once I fixed that ...


1

Untested. Edit your ~/.profile ... if [ -x /bin/bash ]; then exec bash fi


0

Do you mean something like which bash >/dev/null && exec bash? Or is the output of getent passwd of any use to you?


1

I would like to believe that it is not installed if so why the system returned java: /usr/bin/java? whereis doesn't resolve the symlink. So if /usr/bin/java still exist, even though the symlink target is broken, it will still return java: /usr/bin/java. I recommend you use type -a java to get the correct result. Please note that the symlink target OR ...


1

You may have to configure Alternatives to point to java, its explained in my link. I have noticed with trying to keep Oracle Java installed over the openjdk that you have to make sure everything is linking correct and running the correct version of java. If using an RPM system machine, I used the steps in the link below for getting it to work. Install ...


1

When you install new updates with yum, the original installed packages and binaries are updated. It doesn't keep multiple copies of them around. It does cache various things however. You can use various yum clean options to tidy up some of yum's own cache files. For example, yum clean packages will remove cached packages that have been downloaded, some ...


1

The -A INPUT -s adds a rule for any packets with the source subnets specified on the line. Therefore, in your example, you are logging and dropping all packets that have a source IP address that starts with 255 and all that start with 0, such as 255.1.2.3.4 or 0.56.78.90 The idea here is that there should will never be packets that start with those ...


2

Per man visudo, section "Diagnostics": /etc/sudoers.tmp: Permission denied You didn’t run visudo as root. I see nothing in your post to indicate that you did run it as root. Try sudo visudo. Also it looks like you may be getting errors related to sudo itself. Can you sudo ls ~root successfully? You may also want to review the man page, as: ...


5

To see another users sudo permissions you can use: sudo -l -U <user>. Provided you have enough permissions yourself. Or (to answer the question) you can use the su command (aka switch-user). Running it as su - tina will switch to that user and run the login scripts (drop the - to skip this part). You will be prompted for their password. Or, you use ...


0

sudo yum --setopt=obsoletes=0 install shrinkwrap Or you can put obsoletes=0 to /etc/yum.conf to make such behavior persistent. Both ways worked for me on Oracle Linux 6.7.


0

Two things to keep in mind with RHEL (which is what I'm assuming you mean by "red hat"): 1) It's an Enterprise platform, which means they intentionally try to keep things as similar as possible for as long as possible. The updates you're getting are to fix issues with the older kernel. Occasionally they'll backport new features or rebase a package but the ...


1

Passing arguments to a function which can be used as $1 or $@ is not the same as reading stdin. You will have to fetch the data from stdin first. The following might not be the ideal solution but gives you a hint: #!/bin/bash log() { read INPUT logger -s -t $(basename $0) "DEBUG: $INPUT" } echo "test" | (log)


2

This is the documented behaviour: message Write this message to the log; if not specified, and the -f flag is not provided, standard input is logged. Fortunately, you can add the needed information to the standard input of the logger: log() { { printf "DEBUG: $@" # Prepends the prefix. cat # ...


0

I have booted my system with my previous kernel which is working fine. while troubleshooting the system we found that there is no initrmfs image on the system and there is no initramfs line in the grub.conf file. I have created the image with the below command and edited the grub.conf file # mkinitrd /boot/initramfs-2.6.32-573.26.1.el6.x86_64.img ...


-1

Use echo 0 > /selinux/enforce on Centos.


0

Change the K99 to S00_ or mv S01reboot Sxxreboot and make your script S01. What I did was to create a script: #!/bin/bash echo "Ran S10" >> /var/tmp/done and called it "S10Test" then another: #!/bin/bash echo "Ran K10" >> /var/tmp/done Then I rebooted my VM. /var/tmp/done contained "S10" You may want to test yourself. What I ...


0

I think the error says it: "missing or too old". Probably some symbols are missing in your library nss. You can check this using: nm <path-to-libnss3> | grep VFY_VerifyDigestDirect Now there are two possibilities: VFY_VerifyDigestDirect is found; that means the linker doesn't find your nss3 library after all VFY_VerifyDigestDirect is not found; ...


0

The following command (run as root) will disable all swap space, moving anything in swap into actual RAM before disabling it. Be wary though, as if you end up needing more memory than you have without swap, you will have issues ranging from the kernel killing processes at its discretion to a full-on kernel panic. swapoff


0

Look I think that you can replace the command you need with the following sudo cat /dev/sda2|head -n 5|strings You can change the number of head lines as you want and you can also remove the head part and append a "less" to go through all the required disk or whatever sudo cat /dev/sda2|strings|less


1

The changes to iptables can't be rolled back one by one: you have to reset all the rules and re-apply the ones you need. In your case, you seem to have a clean firewall by default, so all you need to do is: sudo iptables --table nat ---flush This will remove all the rules from the "nat" table.


2

As is often the case on Solaris, /usr/bin/egrep is a legacy implementation that isn't POSIX-compliant, while /usr/xpg4/bin/egrep is a POSIX-compliant implementation and has little if anything beyond POSIX. Unless you're running legacy Solaris applications from the pre-POSIX days, make sure that /usr/xpg4/bin is before /usr/bin in your $PATH. GNU tools ...


3

No. The mount options trump all. That's what they're for: to ensure that nothing ever gets executed directly from that filesystem. To counter noexec, you can run most programs indirectly by invoking their launcher: If the program is a script (starting with a shebang), invoke the interpreter and pass it the script as its first argument. If the program is a ...


2

You're on the right track with tty, and the -t option gives you just that. However, unless you are actually aiming to get a tty session for interacting, leave this option off of the last ssh command in your chain. In your case you just need it on the first connection: ssh -L 5901:localhost:6000 host1 -t ssh -L 6000:localhost:5901 -N host2 Now when you use ...



Top 50 recent answers are included