New answers tagged

1

If you're from the future (Fedora 23+), where yum is getting replaced with dnf, you might find this bash script useful.


0

You should checkout this post on the Fedora form. https://ask.fedoraproject.org/en/question/35074/restore-fedora-official-repository-files/ In places of the URL where you see 20 I would replace with 24.


1

If you check your repo file for CentOS 6 Base in /etc/yum.repo.d/ you'll find there such strings: [base] name=CentOS-$releasever - Base mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os #baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6 ...


1

You cannot recover this directory or its contents unless you have a backup. However, unless you have made modifications to the files in that directory (which are your Yum repository specifications), you should be able to retreive the files as they were from another Fedora system of the same version. If there were custom modifications or additional files ...


2

With awk one can set record separator to double newlines to in some way simulate perl's paragraph mode as in terdon's answer: awk 'BEGIN{RS="\n\n";OFS="\n"} \ /repo-name1/{for(i=1;i<=NF;i++) if($i=="enabled=1") $i="enabled=0"}1' file


2

Something like this: sed -i '/repo-name1/{n;n;n;s/enabled=1/enabled=0/}' repos.txt This requires that enabled= always be at the third line after repo name.


4

Perl's "paragraph mode", where "lines" are defined by consecutive newlines, is perfect for this: $ perl -00pe 's/enabled=1/enabled=0/ if /\[repo-name1/' file [repo-name1] name=repo-name1 baseurl=http://linktomyrepo.com enabled=0 sslverify=0 proxy=_none_ [repo-name2] name=repo-name2 baseurl=http://linktomyrepo.com enabled=1 sslverify=0 proxy=_none_ Or, ...


0

Yes, you can and probably will confuse your system if you mix repos that are more up to date than the rest of your system. This is because of dependencies. Say, for example, you want the latest wizbang shell, so you add that newer repo to your list. But it needs a new version (for example), of libsomething, and none of your repos have that. Or, worse, you ...


8

Get gcc-doc package In order to be able to fetch this packages with the apt-get install command we need to edit our sources.list file to include both contrib and non-free repositories. For example, here's my /etc/apt/sources.list file: deb http://httpredir.debian.org/debian/ jessie main contrib non-free deb-src http://httpredir.debian.org/debian/ jessie ...


2

PkgDB is official Fedora package repository for Fedora, which is accessible using your fedora.repo and fedora-updates.repo files on Fedora. You don't need to add anything to default Fedora installation to have it working (if you are using up-to date Fedora version). If you want to use it on different distro (RHEL, CentOS), you can download the packages from ...


3

Fedora 20 is considered old, unsupported. According to the Fedora wiki, that applies also to Fedora 21. The timeline is explained in another part of the wiki: The Fedora Project releases a new version of Fedora approximately every 6 months and provides updated packages (maintenance) to these releases for approximately 13 months. This allows users to "...



Top 50 recent answers are included