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.


25

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


16

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


16

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


15

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

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


11

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


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


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

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


10

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


8

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


7

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


7

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


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

Simple and easy solution: just specify the unwanted packages with an extra - after each of them. Example without the - switch: root@debian:~# apt-get install bsd-mailx Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: exim4-base exim4-config exim4-daemon-light ...


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

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.


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

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

It wasn't long after I started using Chef in earnest that I was coming up against these same issues. I only came to some sense of sanity when I started doing four things operationally. Note that these may not be considered "best practices" by some in the Chef community. Nonetheless, this is how I brought sanity, repeatability, and order to my world. Create ...


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

As you've found, pkg_add can't upgrade ports gracefully. The portupgrade package does this quite nicely however, and is the method I use and recommend (there are others available if you don't like this method). Once the port is installed you can simply run portupgrade -aPP and it will upgrade all ports installed on the system using packages. If you don't ...


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

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

It's telling you that: It wants to upgrade freetype version 2.2.1-28.el5_5.1 — note the .1. freetype-devel 2.2.1-28.el5_5 (older version) is installed, and freetype-devel 2.2.1-28.el5_5 (older version) requires freetype 2.2.1-28.el5_5 (older version) Since step one will remove the older version of freetype, the old freetype-devel would be left broken. So ...


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

aptitude will let you specify a query instead of a package name when installing. If you wanted to install the dependencies of package named foo, you can install the packages which have a reverse dependency on foo: aptitude install '?reverse-depends(foo)' or aptitude install '~Rfoo' The problem with installing a package then removing it, is that all of ...



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