Hot answers tagged

91

Debian Wheezy and earlier: The program add-apt-repository is available in Debian. It's in the python-software-properties package: sudo apt-get install python-software-properties It was added to that package in version 0.75. The current version in Debian Stable ('squeeze") is 0.60, so it doesn't have it. The version currently in Debian Testing ...


32

I would assume most distros accept individual private donations (they may also accept free hosting). However, that is probably not the bulk of their financing in most cases. Note that some of the major distros may have some paid staff, and possibly also office space, the cost of which likely exceeds that of hosting the repos1. This should not be taken to ...


27

Usually each Linux distro has a few central servers were they put directly all the packages. But there exists mirrors arround the world that have copies of these packages. These mirrors comunicate directly with the central servers looking for updates periodically. Normally there is a delay in the release of an update between this central servers and the ...


16

Apache 2.4 on CentOS: Step 1: cd /etc/yum.repos.d/ wget http://repos.fedorapeople.org/repos/jkaluza/httpd24/epel-httpd24.repo Step 2: yum install httpd24.x86_64 Step 3: $ /opt/rh/httpd24/root/usr/sbin/httpd -version Server version: Apache/2.4.6 (Red Hat) Server built: Sep 25 2013 05:25:46 NOTE: config files are in: /opt/rh/httpd24/root/etc/httpd ...


16

On AskUbuntu there is this question which may of help The repositories for EOL Ubuntu releases are archived, so http://archive.ubuntu.com/ubuntu/dists/ was moved to http://old-releases.ubuntu.com/ubuntu/dists/ (raring-updates is here) - basically all you should need to do is replace archive.ubuntu.com & security.ubuntu.com in the software sources ...


14

Debian has a distribution channel that provides security updates only so that administrators can choose to run a stable system with only the absolute minimum of changes. Additionally, this distribution channel is kept somewhat separate from the normal channel: all security updates are fed directly from security.debian.org, whereas it is recommended to use ...


14

Package sources are listed in /etc/apt/sources.list and /etc/apt/sources.list.d/*.list. Usually you would list official sources in the main file /etc/apt/sources.list and add third-party repositories in /etc/apt/sources.list.d/indicative_name.list. If you installed from CD-ROM, there'll be a line with deb cdrom:[some name]/ stable main Remove it or ...


13

deb lines are relative to binary packages, that you can install with apt. deb-src lines are relative to source packages (as downloaded by apt-get source $package) and next compiled. Source packages are needed only if you want to compile some package yourself, or inspect the source code for a bug. Ordinary users don't need to include such repositories.


13

You can use repotrack instead like this: repotrack -a x86_64 -p /repos/Packages [packages] Unfortunately there is a bug with the -a flag (arch). It will download i686 and x86_64. Here's how to fix it: if opts.arch: #archlist = [] #archlist.extend(rpmUtils.arch.getArchList(opts.arch)) archlist = opts.arch.split(',') # Change to this else: ...


10

Debian packages are checksummed, and the checksums are signed by a key in the Debian keyring. The apt package manager ensures that the downloaded package has the correct checksum and that the checksum file was signed correctly.


9

Assuming you're running a non-ancient version of Debian (Etch or later), you can just drop a file in /etc/apt/sources.list.d/ The file name must end with .list; Debian Stretch (not yet released) will likely add .sources with a different format. The format is the same as the main sources.list file. The advantage is, especially if this is for some software ...


8

At the end of the day yum is just a glorfied http downloader, so you can determine the actual URL that it's using to download a package and attempt to do the same using curl or wget and see if the slowness is being induced by the mirror site or something else local to your system. You can use the repoquery to see the URL of one of the RPM packages like so: ...


7

Regarding safety I'd say they are even more unsafe and more likely to break your system than they are on Ubuntu. Consider a badly written package, that does not list the correct version of a required library as a dependency and therefore installs, but doesn't run. Now imagine what happens if this package is a core system component. So, if you're planning to ...


7

If you're only interest is in downloading a package + its dependencies for offline installation you can use the tool yumdownloader. It's part of the package yum-utils. $ yumdownloader --resolve <package name> Example $ yumdownloader --resolve vim-X11 Loaded plugins: langpacks, presto, refresh-packagekit Adding en_US to language list --> Running ...


7

You can also find complete information at the man page for that file: man sources.list


7

add-apt-repository can now be found in the software-properties-common package.


7

RPM file is not repository. It is type of package that is used in CentOS (and Red Hat and some other distributions). Repository is place that packages are kept and can be downloaded and installed by package manager in your distribution. Another package format is DEB. It is used by Debian, Ubuntu and their derivatives. There are also other formats, but that ...


7

I'm pretty sure Debian puts security updates in the regular repo as well. The reason to have a separate repo that only contains security updates is so you can set up a server, only point it at the security repo, and automate updates. Now you've got a server that is guaranteed to have the latest security patches without accidentally introducing bugs caused ...


7

This isn't a direct answer to your question, but there are several things you can do to mitigate against this risk. The simplest one is to check your downloaded packages against the checksums from a different mirror than you downloaded from. When my package manager (poldek) downloads a package, I have it set to keep a copy of the downloaded rpm in a cache ...


6

http://www.opensource.apple.com/static/iso/darwinx86-801.iso.gz


6

This is a problem that many people look to have faced, including myself. The solution itself is not as freely available as the question. It took me a bit of effort to find out one working way to download a RPM and all its dependencies even if any of them are already installed. So, let me write it down here. For everyone's information, yumdownloader does not ...


6

You can use apt-cache search. For example to search firefox: apt-cache search firefox This is the according snippet from man 8 apt-cache: search regex [ regex ... ] search performs a full text search on all available package lists for the POSIX regex pattern given, see regex(7). It searches the package names and the descriptions ...


6

In /var/lib/dpkg/info are .list text files that list all the files contained in each package¹ installed through Debian's package manager. Finding all files in the filesystem not matching any entry there can be achieved with something naïve like this: find / -xdev -type f \( -exec grep -xq "{}" /var/lib/dpkg/info/*.list \; -or -print \) This will ...


6

knowledge about early source-code repositories is woefully incomplete According to the SourceForge wikipedia page: SourceForge, founded in 1999 by VA Software, was the first provider of a centralized location for free and open-source software developers to control and manage software development and offering this service for free. It's certainly ...


5

With regard to Debian, companies using Debian donate servers and bandwidth. I think the Project also uses monetary donations to purchase hardware, particularly specialist hardware. You can find discussions of this on the Debian mailing lists. However, I've never heard of Debian paying for bandwidth. Presumably they can find enough ISPs to let them use ...


5

You can set options in your sources.list: deb [trusted=yes] http://localmachine/debian wheezy main The trusted option is what turns off the GPG check. See man 5 sources.list for details. Note: this was added in apt 0.8.16~exp3. So it's in wheezy (and of course jessie), but not squeeze.


5

Just checked one of their mirrors and the last update there seems to be from December 2014, for Fedora 20 packages. But I didn't find any recent news that it might be down for everybody. Right now their servers seem to time out on connection requests. If you only require some older packages from them (only el6 ?) then you could easily switch the repo ...


5

Having multiple versions of a library in the system is not an issue in most Linux distributions: shared libraries with distinct sonames can coexist within the same /usr/lib directory. Moreover, package managers can be instructed to install several such libraries by specifying correct package names: apt-get install libjpeg7 apt-get install libjpeg8 In ...


5

On Ubuntu amd64 installations, i386 is enabled as an additional architecture by default. apt & co. expect repositories to provide all configured architectures, which causes the error you're seeing. Since your mirror only has amd64 packages, you should mark it as such: deb [ arch=amd64 ] ...


5

You don't say but what versions are you getting and what versions do you expect? What repositories do I have? You can find out what repositories your system is configured to query using this command: $ yum repolist | expand Loaded plugins: fastestmirror, priorities, refresh-packagekit Loading mirror speeds from cached hostfile * base: ...



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