LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 09-28-2005, 01:49 PM   #1
Verbal Kint
Member
 
Registered: Apr 2004
Posts: 99

Rep: Reputation: 15
Apt-get


Hello,

I am trying to do my updates using putty via ssh/cmd and this is what I get:

[root@linux jeff]# apt-get update
-bash: apt-get: command not found

I have had no problems running the apt-get command before reinstalling Fedora. I tried:

"yum install apt" and receive this:

[root@linux jeff]# yum install apt
Setting up Install Process
Setting up Repo: base
repomd.xml 100% |=========================| 1.1 kB 00:00
Setting up Repo: updates-released
repomd.xml 100% |=========================| 951 B 00:00
Reading repository metadata in from local files
primary.xml.gz 100% |=========================| 797 kB 05:49
MD Read : ################################################## 2623/2623
base : ################################################## 2622/2622
primary.xml.gz 100% |=========================| 381 kB 00:06
MD Read : ################################################## 998/998
updates-re: ################################################## 998/998
No Match for argument apt
Nothing to do


I then tried running "apt-get update" and received the same error:

[root@linux jeff]# apt-get update
-bash: apt-get: command not found


Does anyone know what I can do to apply my updates via command:

#apt-get update
#apt-get upgrade


Thanks in advance!
 
Old 09-28-2005, 02:03 PM   #2
spooon
Senior Member
 
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 51
A side note: Apt is deprecated in Fedora Core in favor of Yum.

Apt is in the "extras" repository. It seems that you only have "base" and "updates-released" enabled. Can you show us your /etc/yum.conf and all the files in your /etc/yum.conf.d? If you are using FC4, extras should have been enabled by default.
 
Old 09-28-2005, 02:13 PM   #3
Verbal Kint
Member
 
Registered: Apr 2004
Posts: 99

Original Poster
Rep: Reputation: 15
#vi /etc/yum.conf:

[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
tolerant=1
exactarch=1
retries=20
obsoletes=1
gpgcheck=1

# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d

___________________________________________________________________________________

/etc/yum.conf.d doesn't exist

[root@linux etc]# locate yum.conf.d
[root@linux etc]#

I am running Fedora3

Last edited by Verbal Kint; 09-28-2005 at 02:14 PM.
 
Old 09-28-2005, 02:18 PM   #4
slackhack
Senior Member
 
Registered: Jun 2004
Distribution: Arch, Debian, Slack
Posts: 1,016

Rep: Reputation: 47
*checks bulletin board behind him for articles on apt-get*


 
Old 09-28-2005, 02:21 PM   #5
Verbal Kint
Member
 
Registered: Apr 2004
Posts: 99

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by slackhack
*checks bulletin board behind him for articles on apt-get*


I don't understand, sorry.
 
Old 09-28-2005, 02:24 PM   #6
slackhack
Senior Member
 
Registered: Jun 2004
Distribution: Arch, Debian, Slack
Posts: 1,016

Rep: Reputation: 47
the guy "verbal kint" in the usual suspect made up stories based on the stuff on the bulletin board? sorry, just an attempt at humor.
 
Old 09-28-2005, 02:29 PM   #7
Verbal Kint
Member
 
Registered: Apr 2004
Posts: 99

Original Poster
Rep: Reputation: 15
hahahha OMG I can't beleive I never noticed that.......hahahahhaha Good One! ......I still need help though
 
Old 09-28-2005, 02:39 PM   #8
slackhack
Senior Member
 
Registered: Jun 2004
Distribution: Arch, Debian, Slack
Posts: 1,016

Rep: Reputation: 47
Quote:
Originally posted by Verbal Kint
hahahha OMG I can't beleive I never noticed that.......hahahahhaha Good One! ......I still need help though
no need to be sarcastic.

what repos do you have in /etc/yum.repos.d/ ?
 
Old 09-28-2005, 03:20 PM   #9
Verbal Kint
Member
 
Registered: Apr 2004
Posts: 99

Original Poster
Rep: Reputation: 15
Hey,

I wasn't being sarcastic @ all, I actually found your post pretty funny....Anyways:

[root@linux etc]# cd yum.repos.d
[root@linux yum.repos.d]# ls
fedora-devel.repo fedora-updates.repo
fedora.repo fedora-updates-testing.repo
 
Old 09-28-2005, 04:27 PM   #10
WhatsHisName
Senior Member
 
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHEL, AltimaLinux, Rocky
Posts: 1,151

Rep: Reputation: 46
Verbal Kint: This one will work for fedora extras, but you really should substitute your favorite fedora mirror for the baseurl = ...redhat...:

/etc/yum.repos.d/fedora-extras-mirror.repo:

[extras]
name=Fedora Core $releasever - $basearch - Extras
baseurl=http://download.fedora.redhat.com/pub/fedora/linux/extras/$releasever/$basearch/
enabled=1
gpgcheck=1
 
Old 10-02-2005, 09:54 PM   #11
Verbal Kint
Member
 
Registered: Apr 2004
Posts: 99

Original Poster
Rep: Reputation: 15
Okay I am kind of new to all of this and I am not sure what you meant from the previous post.

Thanks
 
Old 10-02-2005, 10:53 PM   #12
spooon
Senior Member
 
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 51
So you create a new text file in your /etc/yum.repos.d/ directory, called something like "fedora-extras.repo" and put the following content in it. This is mine from FC4:
Code:
[extras]
name=Fedora Extras $releasever - $basearch
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/extras/$releasever/$
basearch/
mirrorlist=http://fedora.redhat.com/download/mirrors/fedora-extras-$releasever
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-extras
gpgcheck=1
But since you don't have it, you're probably not using FC4. For FC3, following the instructions here: http://www.fedoraproject.org/wiki/Extras/UsingExtras.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
apt-get update errors since Debian released ( bad /etc/apt/sources.list ?) forgox Debian 10 06-13-2005 12:28 PM
knoppix 3.4 and no apt-setup how to fix info install apt-file + base-config maximalred Debian 0 10-16-2004 06:36 PM
apt-proxy and cron-apt - download once for the whole LAN Abject Debian 1 06-20-2004 01:53 PM
knoppix 3.4 apt-setup on hdinstall / apt-get on live-cd non3 Linux - Distributions 0 05-25-2004 10:14 AM
rh9 xd2 apt apt-get problem fix and solution transeunt Red Hat 0 12-16-2003 10:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 10:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration