Tag Info

Hot answers tagged

33

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


16

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 ...


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

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-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}'`


8

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


8

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 ...


8

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


7

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


7

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

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


6

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


6

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


6

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 ...


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 ...


5

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


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

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


4

You can find default mysql config files in /usr/share/doc/mysql-server-5.0/examples/ or similar. That may be all that you need unless you have some really special/esoteric configurations enabled.


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

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

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.


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

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.


3

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 ...


3

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 ...


3

This should (among other things) list the "depends" section of the package description. $ dpkg -p <package_name>


3

Looks like messed up repositories for me. Ubuntu 8.04 LTS does not have GCC 4.3.x, only 4.2.x, and it had not been back ported. Try inspecting /etc/apt/sources.list to find any non hardy repositories laying around.


3

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: ...


3

Note that from CentOS-5.3 onwards you can try: yum update --skip-broken ...this will likely work even better in 5.4.



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