The tag has no usage guidance.

learn more… | top users | synonyms

124
votes
8answers
105k views

How can I run Debian stable but install some packages from testing?

Say you're running a server and you don't want to upgrade to Testing (Squeeze) from Stable (Lenny) to just install a required package or two. What's the best way of installing only certain packages ...
89
votes
11answers
102k views

How to know from which yum repository a package has been installed?

After I have installed a package by yum (with multiple repositories configured), how can I find from which repository it has been installed? If I run yum info package-name (or yum list package-name), ...
34
votes
5answers
12k views

How to unify package installation tasks in ansible?

I am starting with ansible and will use it, among others, to install packages on several Linux distros. I see in the docs that the yum and apt commands are separated - what would be the easiest way ...
31
votes
4answers
10k views

Vagrant box most similar to Amazon EC2 instances

Are there any 'boxes' available to download for Vagrant that closely mirror the Linux version and packages available for Amazon EC2 instances? I am testing locally using Vagrant, currently using the ...
29
votes
11answers
1k views

Best practices for keeping UNIX packages up to date?

How do you keep your servers up to date? When using a package manager like Aptitude, do you keep an upgrade / install history, and if so, how do you do it? When installing or upgrading packages on ...
24
votes
1answer
20k views

How to update a package using puppet and a .deb file

I am trying to figure out the proper way to update/upgrade a deb package using puppet from a local source deb file. My current config looks like this... class adobe-air-2-0-4 { file { "/opt/air-...
23
votes
4answers
31k views

Installing optional Nginx modules with apt-get

I currently have Nginx installed via the instructions on the Nginx site: nginx=stable sudo su - add-apt-repository ppa:nginx/$nginx apt-get update apt-get install I have configured Nginx and it ...
21
votes
4answers
3k views

How does Windows handle program dependencies?

I have used Linux for quite a while, and I always wondered how Windows was able to handle the programs depedencies like apt-get, aptitude, Pacman, yum and other package managers are able to. Sometimes,...
21
votes
4answers
10k views

Given a debian source package - How do I install the build-deps?

I have a debian (well technically ubuntu) source package, i.e. the .dsc, the .tar.gz, etc., I want to build this. The dpkg-buildpackage fails, since I don't have all the build dependencies. Normally ...
16
votes
5answers
26k views

how to remove a package which post-installation and pre-removal script fails?

I have an issue with the package openqrm. How do I remove it? root@wl183004:/# apt-get upgrade Reading package lists... Done Building dependency tree Reading state information... Done 0 ...
16
votes
4answers
22k views

yum simulate install

Coming from an ubuntu perspective, if I want to check to see what additional packages will be installed/upgraded I can use apt-get --simulate install <package name> Is there something similar ...
15
votes
7answers
2k views

FLOSS Server management and audit tools

I've been working with HP's Server Automation tool suite for a long time, and while it's a great tool - it's too much for a small business or home network to use (more accurately: it's way too ...
13
votes
3answers
438 views

How to install two packages that write the same file

I have two packages that each create /usr/bin/ffprobe. One of them is ffmpeg from the Deb Multimedia repository, while the other is ffmbc 0.7-rc5 built from source. The hand-rolled one is business-...
12
votes
3answers
74k views

How do I cleanly remove apache2 server on ubuntu server and then reinstall?

I am having some wierd issues with Apache2 server on my ubuntu server. I believe some configuration files may have been tampered with. What is the easiest way to remove apache2 completely from my ...
11
votes
2answers
3k views

How can I install packages without starting their associated services?

As you're probably aware, by default when you install a package on a Debian or Ubuntu based system, if the package contains a service, that service will generally be enabled and started automatically ...
11
votes
5answers
57k views

How to install mcrypt for PHP 5.3.3 on CentOS 5.7 64 bit?

I installed php 5.3 and some modules using yum install php53-{module-name} But mcrypt did not work. I searched like this: yum list php* | grep mcry The only package that came up was php-...
10
votes
5answers
3k views

Compute a list of difference between packages installed on two hosts

I just add some problems with my Debian virtual servers and I add to reinstall all of them from scratch. However, I still had access to the old version and I could retrieve the list of installed ...
10
votes
3answers
68 views

Best practice for proxying package repositories

I have a collection of CentOS servers in my corporate network. For security reasons, most servers do not have general outbound internet access unless it is a core functional requirement for the server....
9
votes
3answers
4k views

How can I limit the bandwidth of apt-mirror?

I need to make a once off mirror of all the Ubuntu apt repository (for the record it's because I'm sending it to Kenya (see here and here). I did it before and used apt-mirror, and that does exactly ...
9
votes
3answers
371 views

Should I use the CentOS package version in the (official) repositories, or the latest stable versions of the packages?

This is an open ended question, but I do wish to have a constructive and helpful discussion into this topic. So to clarify on the question: On a server running CentOS 7 (or any other Linux distro/...
9
votes
2answers
30k views

yum equivalent of “apt-get purge”

I want to reinstall a package on CentOS and start from scratch. In Debian, I can do a apt-get purge foo and it'll remove all config files for foo. yum remove foo doesn't remove the config files. Is ...
9
votes
2answers
2k views

Installing open-vm-tools in Ubuntu via Puppet; what's the lesser evil?

In an ideal world, configuring puppet to install the open-vm-tools should be as simple as this: class vm-tools { package { 'open-vm-tools': ensure => installed } package { '...
8
votes
13answers
7k views

How do I stop Ubuntu from starting daemons I've not explicitly asked to run?

One of the basic principles of computer security is never to run anything you don't need. I was pgrepping for a process today when I noticed that my Ubuntu 9.04 (desktop) machine was running a git ...
8
votes
3answers
6k views

install the same debian packages on another system

How do I export a list of installed Debian packages on a system, and then install those same packages on a new system?
8
votes
1answer
14k views

Debian/Ubuntu - How to restore /var/cache/apt structure after deleting it?

I was running out of space on an Ubuntu server, so I did this command to save space sudo rm -rf /var/cache/apt/archives However now when trying to do things with apt, I get the following errors: E:...
8
votes
2answers
3k views

Do .rpm files have metadata

I have a .rpm file on my windows machine. Is there a way to inspect this file (either on windows or centos) without installing it, to find out where it was compiled from? something like metadata?
8
votes
3answers
15k views

How to check when yum update was last run

Is there a canonical way to find out the last time that yum update was run on a system? Our set up is that we have staging servers that run automatic updates, and provided they don't fall over, we ...
8
votes
3answers
8k views

How do I see the changelog for a debian/ubuntu deb package?

I'm running Ubuntu and I have a deb file installed. I've made deb packages before, so I know there is a debian changelog (debchange). Is there anyway to see the debian changelog for any package that I ...
8
votes
5answers
5k views

How to patch CVE-2015-0235 (GHOST) on debian 7 (wheezy)?

This vulnerability was found in glibc, see this hacker news post for more info. As described in the debian bug tracker, the vulnerability was already patched in testing and unstable. I'd like to ...
8
votes
2answers
5k views

Puppet - get list of packages and versions

Is it possible to tell puppet to compile a catalog for one (or all) node(s) and save that particular data somewhere? I'm specifically interested in getting all needed packages and their versions per ...
8
votes
2answers
643 views

What is the easiest way to create a virtual package in debian?

What is the easiest way to create a "virtual package" in debian? My problem: I have compiled/installed mysql from source and now need to tell other packages that mysql is already installed (otherwise ...
8
votes
2answers
1k views

Odd behavior of apt-get with post-inst instructions, and .desktop files

We have a number of hand-built (with fpm and jenkins) .deb files in a local Apt repository (reprepro). These .debs contain a .desktop file that will be picked up by xdg-desktop in a post-inst script. ...
7
votes
3answers
492 views

Install application/HTTP services to “/srv”?

I have been working with a team who used to install all the application and HTTP services like Apache or Tomcat to the '/srv' directory. I suspect mostly in order to keep the installed services ...
7
votes
9answers
6k views

Is there any decent repositories for CentOS or Fedora?

I'm known as a hater of RPM/Yum based OS, just because i think their lacking of decent package repositories (at least for recent software). While in Debian/Ubuntu, there are a lot of good ...
7
votes
5answers
2k views

macports vs fink [closed]

Which one is preferred? I am comfortable in Unix-esque environments and recently purchased a Macbook. I am currently using macports, as it is from Apple, but dont like how python 3.1 becomes /opt/...
7
votes
2answers
3k views

debian packages version convention

I'm using debian/Ubuntu, and get confused about versions of packages. When using dpkg -l command, I get: ii vim 2:7.3.429-2ubuntu2.1 Vi IMproved - ...
7
votes
2answers
3k views

'pip install carbon' looks like it works, but pip disagrees afterward

I'm trying to use pip to install the package carbon, a package related to statistics collection. When I run pip install carbon, it looks like everything works. However, pip is unconvinced that the ...
6
votes
6answers
818 views

Source vs Package Managers on the job

I am a bit confused, as there are two ways to install applications. One being to configure and make from source and the other from a package manager. If one were a UNIX/Linux administrator, is it ...
6
votes
6answers
378 views

How to keep programs from source up to date?

I'm designing a new server setup for hosting multiple websites. (Shared hosting for my clients over at SliceHost.) I've recently moved away from the traditional LAMP setup and chosen Ubuntu, Nginx, ...
6
votes
5answers
2k views

How do I get a list of packages that “Provides” something" using dpkg?

I see that dpkg has a "Provides" field for packages. $ apt-cache show vim-tiny | grep Provides Provides: editor $ How do I know which packages provide i.e. "editor"?
6
votes
3answers
4k views

Using Puppet to install software “bundles”

We're in the process of researching a configuration/systems management implementation and we've done quite a lot of demoing of Puppet. Puppet seems to excel at the somewhat simple "ensure this ...
6
votes
3answers
7k views

Debian: How do I check the last time package upgrades/updates were run?

I want to know when we last ran the package upgrades/updates on our Debian server.
6
votes
1answer
563 views

How should I create a local fork of a debian package?

I wish to maintain a local fork of a debian package. I need to patch a bug which will eventually be fixed in the official package, but not for some time. How do I create a .deb package, and how do I ...
6
votes
1answer
191 views

Should /usr/local/bin be owned by root?

Package manager Homebrew (I'm on OS X, but I'm curious about Unix-based security in general, as it pertains to directory permissions) set the owner of /usr/local/bin to my user (it's root by default, ...
6
votes
2answers
1k views

RPM packaging multiple versions for simultaneous install

Are there some guidelines, or does anyone have suggestions on how I should package something that I need to be able to have multiple versions of installed at the same time?
5
votes
2answers
10k views

How to completely remove a package in Debian?

I tried to use this: aptitude remove denyhosts And it seemed successfully but after a reboot after I use: ps aux | grep "denyhosts" I see denyhosts is still loaded after startup. So what am I ...
5
votes
4answers
12k views

Is adding the Debian repository to my apt source.list dangerous on Ubuntu? [closed]

I'm trying to install a package from a Debian repository. I am trying to install manually with dpkg errors because of missing or incomplete dependencies. This got me wondering, is it a mistake to just ...
5
votes
3answers
2k views

yum update, how to make rpm package updateable

need a link or tutorial on how to make an rpm package work with yum UPDATE. i have it and already works with yum INSTALL and yum ERASE, but is there somewhere info on how to make rpm package work when ...
5
votes
6answers
2k views

Can anybody tell me how to create my own local package repository for my packages in Ubuntu?

I want to create a package repository for my packages in ubuntu and this repository will be using in multiple Ubuntu systems to install and update packages.
5
votes
1answer
8k views

“No package pv available.” on CentOS 6.2 Minimal

I'm trying to install Pipe Viewer on a CentOS 6.2 minimal system. When I run: yum install pv I get: * base: mirror.thelinuxfix.com * extras: mirror.atlanticmetro.net * updates: ftp.usf.edu No ...