Tag Info

Hot answers tagged

5

Note although the system call is called truncate, it actually is better interpreted as saying "Make my file report this many bytes in size". As per the system call manpage: The truncate() and ftruncate() functions cause the regular file named by path or referenced by fd to be truncated to a size of precisely length bytes. If the file previously was ...


2

The packages that you are trying to install actually depend on an older version of CentOS. Notice in your error message, you reference the el5_latest repository, which is for CentOS 5 or RHEL 5, but you have CentOS 7 installed. The major versions are not compatible. The oldest version of PostgreSQL available for CentOS 7 is version 9.3. You can install ...


2

Here's one way: "Add users to group") read -e -p "Enter the group name: " -i "www-pub" groupname loop=true # "true" is a command while $loop; do # the "$loop" command is executed read -p "enter username: " username if [[ -z $username ]]; then loop=false # this command returns a ...


1

The best way to use current ffmpeg on Linux is to download a static build from this download site. I typically either uninstall distro-provided ffmpeg and put it where the distro's version would be or put it somewhere in the path where it is found earlier than the distro version or just call it with the full path


1

There are commands that can give you the actual package name like yum search You can use rpm -qa package name you can use yum list You can add repository to get additional third party packages If package is not found by yum then it means it is not available in yum repository. So you can add new repository to get it available in yum repository. You have ...


1

PATH The guide places the binary in ~/bin. A vanilla, minimal installation of CentOS 6 & 7 has ~/bin in the PATH as set by ~/.bash_profile: # User specific environment and startup programs PATH=$PATH:$HOME/.local/bin:$HOME/bin export PATH You can double-check with echo $PATH: ...


1

NB: As Zoredache points out in the comment, when you are shrinking things, you must first resize the filesystem, then the underlying block devices, otherwise you will likely lose data. In general, resizing a block device does not resize any filesystem that may be resident on your block device. So, if you used lvresize to resize a logical volume, you would ...


1

Solved the problem myself. File /etc/yum.com had mysql* excluded. I removed mysql* for some period of time & installed it. I got installed like a charm. Now putting back the mysql* in exclude. Hope that helps someone!


1

The postgresql92 package is a "metapackage", meaning it requires other packages, but provides no files. It's part of CentOS SCL (The Software Collections Repository. Installing the file configures CentOS and requires other packages to be installed, including: postgresql92-postgresql-server postgresql92-postgresql postgresql92-postgresql-libs ...


1

I would recommend checking the contents of /etc/sysconfig/i18n: The /etc/sysconfig/i18n file sets the default language, any supported languages, and the default system font. There is a larger discussion on man pages and possibly corrupted characters on this site that discusses things like this. One thing of interest is the discussion of the ...


1

This is the contents of a "good" /etc/man.conf for CentOS6, in case anyone gets into this state (i.e. something wipes out /etc/man.conf and you are stuck because you can't read man pages!). Thank @JakeGould for pointing me in the right direction. In this case, the decompressor is lzma. # # Generated automatically from man.conf.in by the # configure script. ...



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