Deleted All Of The Repos In Yum.repos.d, How To Restore Them?

Hi all,

New to the forums, and new to Linux. Learning the best way I know how, and that's finding things to mess up and spending time to try to fix them. Tonight I decided to see what would happen if I deleted all of my repos from the yum.repos.d directory. Now, I can't seem to find out how to get the default repositories back, and can't find anything on Google. I'm on CentOS 6.5. How can I get the default repos back that came with the original installation? Thank you.


Similar Content



Centos 6.5 Error While Update Repos?

i'm get error while updating repo this is my log

======================================================
Loaded plugins: fastestmirror


File contains no section headers.
file: file://///etc/yum.repos.d/CentOS-Base.repo, line: 1
'iii\n'

======================================================
please help !!!!

Subscription Management

I am newly installed Redhat 7 , and try to yum package , but got the following error ,

I do not have paid for Redhat subscription , would advise if I want to yum package , I have to pay for Redhat ? if not , what can I do ? thanks

#yum install NetworkManager


the system is not registered to Redhat Subscription Management. you can use subscription-manager to register.

There are no enabled repos.

Run "yum repolist all" to see the repos you have

You can enable repos with yum-config-manager --enable <repo>

Trying To Install SVN

Hello all,
I'm having real trouble trying to get SVN 1.8.9 installed on a linux box which is now my responsibility to look after, I think it is centos or scientific linux.
EDIT: it is Scientific Linux release 6.4 (Carbon)

What I've done so far: SVN 1.6 was installed and working fine. I installed smartsvn so that I had a 'nice' GUI to look at the repos on the machine. Smartsvn then upgraded my repos. The svn client on the command line does not work with the upgraded repos. I tried yum install svn but the latest svn is already installed (1.6). I then installed 1.7 from source and still that version was too old. I then installed 1.8.9 from source - yey this worked locally fine. There are cron jobs that run and use the svn client to push to an svn server The SVN I installed from source does not commit properly and gives this error:
svn: E170000: Unrecognized URL scheme for 'http://.....' I googled around and found I need to install svn with configure --with-serf option. This fails as the SVN install needs serf 1.2.1 or newer. So I install serf 1.3.something from an rpm. That installs fine and I retry the configure step but it fails giving the same error. rpm -ql serf returns: /usr/lib/libserf-1.so
/usr/lib/libserf-1.so.1
/usr/lib/libserf-1.so.1.3.0
So I think 1.3 is installed...?
Does anyone know how to make the configure step of svn know where serf is? --with-serf=/usr/lib/ did not work at all for me.

Thanks for any help and I'm happy to post more information.

Cheers

Can't Set Repos In RHEL6.0, Unable To Install Packages

Hi all.
RHEL 6.0 in Virtual Box, network is ok, it can resolve all repos (f.e. dl.fedoraproject.org, nginx.org),
but when I'm trying
Code:
# rpm -Uvh http://nginx.org/packages/rhel/6/noarch/RPMS/nginx-release-rhel-6-0.el6.ngx.noarch.rpm

I get:
Code:
curl: (6) Couldn't resolve host

When I'm trying with ip instead name:
Code:
curl: (22) The requested URL returned error: 404

Only rpmforge repo enabled, but it can't find any packets for install/update.

What can I do?
Thanks.

No Ffmpeg Or Avconv In Linux Mint Repos

Hello everybody

I am running Linux Mint 17.1 Rebecca with the Cinnamon Desktop.

I have experiences with the ubuntu derivatives and ffmpeg and avconv are always avavilable the repos, this time both aren't available

Here are the commands I typed:

apt-get update ; apt-get upgrade

After the packages were upgraded. I ran these commands. Below are there outputs.

Quote:
apt-get install ffmpeg
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package ffmpeg is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'ffmpeg' has no installation candidate

apt-get install avconv
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package avconv
This nevered happened to me before with linux mint in prior versions.

Any ideas?

Debian Now Only Booting To Command Line

Hi all,

I'm once more trying my hand at Linux, but it's been so long that I've forgotten everything I learned last time and going back in again as a total newbie.

I tried out SteamOS first, but found it much too clunky for my tastes and, despite being based on Debian, seemed to have had a lot of functionality removed and inability to install some packages even after adding in Debian repos to the sources.list, so I ended up switching to vanilla 64-bit Debian 8 using KDE as my desktop. At first things were going good, managed to install the AMD Graphics Drivers and get Steam itself installed, along with downloading/installing a few games.
I then downloaded a game from gog.com but was getting an error message, which on looking it up appeared to be due to my only having 64-bit libraries for my graphics drivers and no 32-bit ones. I did some more Googling, ran some commands and did some apt-get installs (though sadly I can't recall exactly what they were) and eventually, the game launched fine and all appeared well.

The next time I started up my laptop though, Debian just boots straight to a full screen command line, not the desktop GUI that I want, and I have absolutely no idea how to either switch back to the GUI, or make it the default again. I'm not sure if I've somehow removed KDE, the xserver (I think?), somehow disabled one of them or just changed the startup preferences.
I'd really rather not have to reinstall the whole system again, so any suggestions will be very much appreciated!

Recursion Gui Free Software



i decided to post this as a new thread seeing how it's a recurring problem for me, and i still haven't found good recursive software to download dependancies from a website when some of the packages aren't in the repos or my linux doesn't have the correct repos in the sources file.

i used dpkg -i and it did not work. i know i can install this with recursion software, however the trend is heading toward arch with linux, so distro agnostic linuxes and parent distros which install tarballs and compile without many bugs automatically are what all linux developers should be supporting first and foremost.

this brings me to my question, there are a lot of applications and dependancies not included in repositories, and not included in your current aptitude (or whatever automated dependancy program you prefer to use to download packages) unless you modify the repo source file, so sources.list or whatever for debian. why do forum answers simply refer newbies and half newbies to using commands with bugs, instead of considering the repository doesn't have the neccessary packages, or that the user needs to add the websites to the sources in their distro before using automated package grabber commands/software? it's quite possible the person who posted the package did not submit it to the linux repo, or has not submitted it yet. some devs are too lazy to put any of their software in any repo.

there are websites like github which seem to be attempting to correct this problem, but it still begs the question, what is good recursion software or a recursive command which works and downloads the dependancies when not in the repositories with the least amount of bugs? theroetically it would be easier to use gui software which has innate recursion and copy and paste the web address of the binary, rather than modify the source file every time you want to download a package with missing dependances.

here was an example of my output downloading a current wheezy kernel in order to make a custom debian image

root@Leck1p2l:/home/leck# gdebi /home/leck/Downloads/kernel-package_12.036+nmu3_all.deb
Reading package lists... Done
Building dependency tree
Reading state information... Done
Building data structures... Done
Building data structures... Done
This package is uninstallable
Dependency is not satisfiable: po-debconf

Debian Custom Encrypted LVM Install - Impossible To Achieve

Hi there!

After my NVIDIA card died I decided it was time to buy an AMD card again (R9 270X), but I didn't think AMD drivers were such a pain in Linux as people said. Of course, in some distros anyway. On Arch, for example, there's no official release because Arch's developers would have to hold Xorg in order to make a closed-source driver available, because AMD's pace isn't in pair with Linux. So in order to install AMD's drivers on Arch I must rely on some guy's unnoficial repositories, but that isn't the whole problem. Even though I'm cool with adding repos and downgrading Xorg, I'm not cool with it not working for a lot of apps, so that's where I decided to try a few distros. Manjaro is a no-go because it installs Flash as default. openSUSE although is a very good distro, is a complete mess when it comes to repositories, specially multimedia ones. Ubuntu/Mint are also a no-go, Ubuntu because after 12.04 they have a spyware by default, and Mint because it contains non-free stuff by default.

So here I come! I ran Debian in the past for a long time (aside from a breaf period last year) and it was lovely, I could easily set up a custom encrypted install, but now I don't remember how to, and it's killing me. I don't like how the installer doesn't show the partitions size as they actually are, and I don't like how the automated encrypted LVM setup doesn't let me chose the encryption algorithm or the timeframe between each passphrase attempt. That's why I must create my install, and here's what I used to do on Arch (the part that really matters), converted to what I use on Debian:

Code:
# modprobe dm-mod

(create one 1GB partition for /boot, unencrypted ; create another big 930 GB formatted as "8e" - LVM - on dev/sda2)
Code:
# fdisk /dev/sda

(chose my ciphers and iter time)
Code:
# cryptsetup -c twofish-xts-plain64 -y-s 512 --iter-time 5000 luksFormat /dev/sda2

(open the luks container on "sda2_crypt")
Code:
# cryptsetup open --type luks /dev/sda2 sda2_crypt

(create physical volume on sda2_crypt)
Code:
# pvcreate /dev/mapper/sda2_crypt

(create volume group "debian" on sda2_crypt)
Code:
# vgcreate debian /dev/mapper/sda2_crypt

(create volumes)
Code:
# lvcreate -L 8G system -n root
# lvcreate -L 60G system -n swap
# lvcreate -l 100%FREE system -n home

After this is done, I go to the "partition disks" page where I select each partition/volume to it's correct destination. I then procceed to installing the base system, configuring apt, and all that. Now, before I install Grub I used to execute the following commands on shell:

Code:
 # nano /etc/crypttab

I used to put something there, but I don't remember what exactly. It's been a long time since I used Debian for long! But here's what I put the

Code:
sda2_crypt /dev/mapper/sda2_crypt none luks

Then I procceeded to instal syslinux (I REALLY don't like GRUB)

Code:
# chroot /target
# apt-get install syslinux

But I get the following error:

Quote:
E: cannot write log (Is /dev/pts mounted?) - posix_openpt (2: No such file or directory).
I'm assuming this is just a non-critical error. But this is not the problem, the problem is when I try to install syslinux:

Code:
# syslinux-install_update -i -a -m

The output:

Quote:
/bin/sh: 2: syslinux-install_update: not found
Then I type "syslinux --help":

Code:
# syslinux -h

Quote:
Usage: syslinux [options] device
--offset -t Offset of the file system on the device
--directory -d Directory for the installation target
--install -i Install over the corrent bootsector
--update -U Update a previous installation
--zip -z Force zipdrive geometry (-H 64 -S 32)
--sectors=# -S Force the number of sectors per track
--heads=# -H Force number of heads
--stupid -s Slow, safe and stupid mode
--raid -r Fall back to the next device on boot failure
--once=... Execute a command once upon boot
--clear-once -O Clear the boot-once command
--reset-adv Reset auxilliary data
--menu-save= -M Set the label to select as default on next boot
--force -f Ignore precautions
I tried literaly every possible combination that would make sense in Arch and yet I can't install it. The Debian documentation on syslinux doesn't help at all, and the Arch's Wiki on Syslinux... well, tells how to make it work on Arch It used to work the same way on Debian, but now it doesn't.

Here's a little list of the errors I get:

Code:
# syslinux -i -U

Quote:
Usage: syslinux [options] device
--offset -t Offset of the file system on the device
--directory -d Directory for the installation target
--install -i Install over the corrent bootsector
--update -U Update a previous installation
--zip -z Force zipdrive geometry (-H 64 -S 32)
--sectors=# -S Force the number of sectors per track
--heads=# -H Force number of heads
--stupid -s Slow, safe and stupid mode
--raid -r Fall back to the next device on boot failure
--once=... Execute a command once upon boot
--clear-once -O Clear the boot-once command
--reset-adv Reset auxilliary data
--menu-save= -M Set the label to select as default on next boot
--force -f Ignore precautions
Code:
#syslinux --install --update

Quote:
Usage: syslinux [options] device
--offset -t Offset of the file system on the device
--directory -d Directory for the installation target
--install -i Install over the corrent bootsector
--update -U Update a previous installation
--zip -z Force zipdrive geometry (-H 64 -S 32)
--sectors=# -S Force the number of sectors per track
--heads=# -H Force number of heads
--stupid -s Slow, safe and stupid mode
--raid -r Fall back to the next device on boot failure
--once=... Execute a command once upon boot
--clear-once -O Clear the boot-once command
--reset-adv Reset auxilliary data
--menu-save= -M Set the label to select as default on next boot
--force -f Ignore precautions
Code:
# syslinux --install --update -i -a -m

Quote:
Usage: syslinux [options] device
--offset -t Offset of the file system on the device
--directory -d Directory for the installation target
--install -i Install over the corrent bootsector
--update -U Update a previous installation
--zip -z Force zipdrive geometry (-H 64 -S 32)
--sectors=# -S Force the number of sectors per track
--heads=# -H Force number of heads
--stupid -s Slow, safe and stupid mode
--raid -r Fall back to the next device on boot failure
--once=... Execute a command once upon boot
--clear-once -O Clear the boot-once command
--reset-adv Reset auxilliary data
--menu-save= -M Set the label to select as default on next boot
--force -f Ignore precautions
Oh, and also users are still not able to press TAB to get the full command without typing it? And we can't even press the up arrow key that we get "^[[A"? :P Whaat?

What am I doing wrong?

I'm really not with the time to mess with these kinds of things, so either I figure this out REAL SOON or I'll be forced to get back to Windows

Is Git Or SVN Stable Or Testing Projects?

Is it safe to use git or svn packages if a package is not available in the repos? Are git and svn stable or testing projects?

Yum Setup To Use Different Repository

Hi,

I have a Fedora 21 system, but I would like to update it using repos from Fedora Core 4.

I have found this article - How to Use YUM in Fedora Core 4 - that allows changes to be made to the yum settings, so that you can run yum on Fedora 4.

Is it possible to setup Fedora 21 to point at this repository over the normal one?

I realise that this is not good practice, but I would like to test out a theory to see if this will work.