Tag Info

Hot answers tagged

34

dpkg -i --force-confmiss mysql-common.deb will recreate any missing configuration files, ie /etc/mysql/my.cnf in your case.


22

You can change the dependencies of a deb package like this: Unpack deb: ar x golden-linux.deb (will create i.e. three files: debian-binary control.tar.gz data.tar.gz) Unpack control archive: tar xzf control.tar.gz (will create: postinst postrm preinst prerm md5sums control) Fix dependencies in control (use a text editor) Repack control.tar.gz: tar c ...


13

apt-cache depends pkgname will show a package's dependencies. If you want it all in one command, you could do worse than: apt-get install `apt-cache depends pkgname | awk '/Depends:/{print$2}'`


12

The yum deplist command will show you which rpm is required: # yum deplist expect .. .. package: expect.i386 5.43.0-5.1 dependency: libc.so.6 provider: glibc.i686 2.5-49 provider: glibc.i686 2.5-49 dependency: libtcl8.4.so provider: tcl.i386 8.4.13-4.el5


10

You are seeing an rpmforge dependency problem, not a CentOS dependency problem. rpmforge perl modules are mass rebuilt at the moment. See http://lists.rpmforge.net/pipermail/users/2009-July/002508.html ff.


10

After you install the package with the --ignore-depends option, go and edit the /var/lib/dpkg/status file, and remove whatever dependency you think is not needed. Just be very careful. In order a dep. to be required, it is more than likely to BE required


10

Welcome to Server Fault. In general this type of question is not on-topic here. It is expected that most sysadmins will have already faced this issue before they became a sysadmin through tinkering with their own workstations. However, sysadmins coming from a Windows background may not have faced this, so here are some things to consider: Why not use a ...


9

apt-get provides a command for exactly that... apt-get build-dep <package name> From the man pages you get build-dep causes apt-get to install/remove packages in an attempt to satisfy the build dependencies for a source package. By default the dependencies are satisfied to build the package natively. If desired a host-architecture can be ...


9

Since you installed postfix from source, you need to install a "dummy" package which will satisfy the mail-transport-agent dependency of mailx (or bsd-mailx). The "equivs" package in debian exists to create such a dummy package which you can install to tell dpkg "this dependency is satisfied" The reason that telling dpkg to simply ignore dependencies is ...


9

From a command prompt running with admin credentials: sc config <server_service_name> depend= <database_service_name> Read more at this sc.exe documentation.


9

rpm -q --requires somepackagehere One is the i?86 package, the other is the x86_64 package.


7

You want to run: $ dpkg --info <blah>.deb


7

You can try the --nodeps flag with apt-get. Or download the package and install it using dpkg with the option --ignore-depends.


7

Install both. rpm -Uvh glibc-common-2.3.4-2.43.i386.rpm glibc-... Or better yet, just use yum. yum install gcc


6

In Debian Squeeze — at least —, we also can do it this way, after su — or sudo for Ubuntu — aptitude install -o Dpkg::Options::=--force-confmiss mysql-server This will care for the dependencies of mysql-server and reset all the missing conf files of the lot, including mysql-common. Conflicting (remaining) files will be prompted out to be kept or reset. ...


6

This might be really dumb but it should work. PACKAGE=awstats yum deplist $PACKAGE | grep provider | awk '{print $2}' | sort | uniq | grep -v $PACKAGE | sed ':a;N;$!ba;s/\n/ /g' | xargs yum -y install


6

It appears you have a Centos 6 machine but have configured the Epel repository for Centos 7. That is not going to work. Remove it and install the Centos 6 Epel Repository at: wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm Make sure you uninstall anything you added from the Centos 7 Epel repository as well. That should ...


5

first: sudo apt-get purge locales then: sudo aptitude install locales and the famous: sudo dpkg-reconfigure locales This rids the system of locales, then re-installs locales and downgrades libc6 from 2.19 to 2.13 which is the issue. Then configures locales again.


5

A dependency indeed only would work in a way that stopping service B would stop service A. If this is not what you want, dependencies are not for you and you would need something outside of the built-in service control mechanism doing this work. Using WMI to subscribe to an event triggered by the service stop command and some scripting to do the checks and ...


5

Each package comes with a list of its own dependencies. For debs, which Ubuntu uses, you can do:- [andys@daedalus ~]$ apt-cache depends git-core git-core Depends: git The dependencies for a package are specified when the package is built. Some of them are specified manually by the package maintainer (the person who's responsible for building the ...


4

I've been looking for this option on a Ubuntu 12.04 Server running Xen. In my domains I use the -virtual kernel, and apt persistently tried to install grub with every kernel package upgrade. Grub however is not needed inside the domU when using p[yv]grub. I've been looking for the -nodeps option to apt-get as well, but it didn't work, so ended up ...


4

Try using aptitude instead, it can be a little smarter in handling package dependencies. sudo aptitude update && aptitude install build-essential update I did some googling and found that the above solution worked for at least one other person that was having the same problem. (see bottom of thread) Link: ...


4

I had similar issues compiling Advantech drivers. The operative phrase here is really "no symbol version". Section 7 of http://lxr.linux.no/#linux+v2.6.33/Documentation/kbuild/modules.txt provides details on module versioning. Section 7.3 is of particular interest. The simplest solution for me was just to stick in a KBUILD_EXTRA_SYMBOLS line (as described ...


4

I hope this helps whoever it is that favorited this question, Finally got google to give me better results. Per this forum and this experts exchange response (scroll to the very bottom), It's not a problem of rpm versions--it's just flat-out not supported: The RPM has been produced with LZMA payload compression which is not supported by RHEL (CentOS). My ...


4

Following on Ignacio's answer, you can see the specific architecture of the packages by doing the following: $ rpm -qa --queryformat "%{NAME} %{ARCH}\n" sqlite sqlite i686 In my case, I only have the one, i686 package...but you can get the architecture associated with the packages that way. If you are interested in what else you can get from the ...


4

You need to export the variable. export LD_LIBRARY_PATH="/usr/local/lib" ./test.cgi Your formulation LD_LIBRARY_PATH="/usr/local/lib" ./test.cgi sets the variable in the current shell. If you're just running LD_LIBRARY_PATH=/usr/local/lib ; ./test.cgi you will set it in the current shell, but not in the child process ./test.cgi. From the bash man page: ...


4

By using the postgresql yum repository you have broken binary compatibility on your CentOS/RHEL system. This means that there are packages (such as libevent) that that repository upgrades/replaces which are incompatible with other packages provided by CentOS/RHEL once installed. Specifically, your postgresql repo has replaced libevent-1.4 which ships with ...


4

The problem is you randomly grabbed an RPM off the Internet. This is a very bad idea overall. It appears OpenVPN is in the EPEL repository, which you should already have installed. So once you install EPEL on your system, you can just do: yum install openvpn like any other package.


4

You could try repoquery --whatrequires --installed python --installed Restrict query ONLY to installed pkgs - disables all repos and only acts on rpmdb --whatrequires CAPABILITY Query all packages that require CAPABILITY.


4

Check your yum.conf to see if there is an exclude argument, eg.: exclude=apache* httpd* mod_* mysql* MySQL* da_* *ftp* exim* sendmail* bind-chroot* This is sometimes set by default when using for example DirectAdmin or other control panel apps.



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