LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Suse/Novell
User Name
Password
Suse/Novell This Forum is for the discussion of Suse Linux.

Notices

Reply
 
Search this Thread
Old 07-04-2005, 01:10 AM   #1
riba43
Member
 
Registered: Feb 2005
Location: Slovenia
Distribution: suse11.0
Posts: 749

Rep: Reputation: 31
apt4suse 9.3


Hi,

Is there somebody who successfully installed apt4suse 9.3 pro. I have tried to install it on my previous system (suse 9.2 pro) but without success.

My system is :

MOBO ASUS K8N - E de luxe
AMD 2800 + 64 bit processor
RAM 512MB
ATI HIS Exacilibur 9700
 
Old 07-04-2005, 01:26 AM   #2
rshaw
Senior Member
 
Registered: Apr 2001
Location: Perry, Iowa
Distribution: Mepis , Debian
Posts: 2,694

Rep: Reputation: 45
yes, i've ran it on every version since its been available.

questions?
 
Old 07-04-2005, 02:29 AM   #3
riba43
Member
 
Registered: Feb 2005
Location: Slovenia
Distribution: suse11.0
Posts: 749

Original Poster
Rep: Reputation: 31
Question

Hi rshaw,

right now I have to delete apt4rpm. The reason was that after successfuly installing apt-0.5.15cnc7-0.suse093.rb0.i586.rpm and apt-libs-0.5.15cnc7-0.suse093.rb0.i586.rpm ( I found that when googling) and after editing source.list, I coulld not execute apt update??. There are some dependencies ( I forgot to copy them) which demands to uninstall apt and apt libs from the system !!

Any solution?
 
Old 07-04-2005, 11:57 AM   #4
rshaw
Senior Member
 
Registered: Apr 2001
Location: Perry, Iowa
Distribution: Mepis , Debian
Posts: 2,694

Rep: Reputation: 45
Code:
#!/bin/sh
#
# This script will download and install apt for suse on your system.
#
# (c) Sebastien Corot, 2005
# version 0.1

# get suse version and system arch
SUSE_VERSION=`grep VERSION /etc/SuSE-release|cut -f3 -d" "`
SYSTEM=`uname -i`

# wget options
WGET_OPT="-nv --retr-symlinks"
SITE_APT1=mirrors.mathematik.uni-bielefeld.de/pub/linux/suse/apt
SITE_APT2=ftp.gwdg.de/pub/linux/suse/apt

test $UID != 0 && {
   echo "You have to be root to install apt on your system."
   echo "Please log as root with su command before running this script."
   exit 0
}

if test -e /usr/bin/apt-get; then
   echo "apt is already installed on you system."
   echo "Exiting now."
   exit 0
fi


# test if wget is installed
WGET_INSTALLED=0
if test -e /usr/bin/wget; then WGET_INSTALLED=1; fi

if [ $WGET_INSTALLED = 0 ]; then
   echo "wget is needed by this script."
   echo "Install wget with YaST before using this script."
   echo "Exiting now."
   exit 0
fi


# set current directory as working directory
cd ./

# remove allready downloaded apt packages in current directory
# to be sure the lastest are used
for i in $i apt-*.rpm
do
  if test -e $i; then
  echo "apt packages already present in current dir. Remove them..."
  rm $i
  fi
done

# Download apt and apt-libs packages corresponding to running system
echo "Will setup apt for SuSE $SUSE_VERSION on $SYSTEM..."
echo ""
echo "Downloading apt and apt-libs packages..."
if [ "$SYSTEM" = "i386" ]; then
 wget $WGET_OPT ftp://$SITE_APT1/SuSE/$SUSE_VERSION-$SYSTEM/RPMS.suser-rbos/apt-0.*
 wget $WGET_OPT ftp://$SITE_APT1/SuSE/$SUSE_VERSION-$SYSTEM/RPMS.suser-rbos/apt-libs-0.*
else if [ "$SYSTEM" = "x86_64" ]; then
 wget $WGET_OPT ftp://$SITE_APT1/$SUSE_VERSION-$SYSTEM/RPMS.suser-jmorris/apt-0.*
 wget $WGET_OPT ftp://$SITE_APT1/$SUSE_VERSION-$SYSTEM/RPMS.suser-jmorris/apt-libs-0.*
     fi
 echo "$SYSTEM arch is no supported by apt for suse"
fi
echo "done"

# install the downloaded packages
rpm -Uvh $(pwd)/apt-*


# Create a new sources.list file with comments
mv /etc/apt/sources.list /etc/apt/sources.list.default

if [ "$SYSTEM" = "i386" ]; then
cat > /etc/apt/sources.list << EOF
# sources.list file created by install_apt4suse script.
# This file gives you a descent and "safe" sources.list with selected components
# which should not break your system.

# The complete list with all available components can be found at:
# http://linux01.gwdg.de/apt4rpm
# BE CAREFULL: Some components provide experimental software, SELECT WISELY !!!
# http://$SITE_APT2/SuSE/$SUSE_VESRION-$SYSTEM/examples/sources.list.FTP


# base, update and security components provide official SuSE updates
rpm ftp://$SITE_APT1 SuSE/$SUSE_VERSION-$SYSTEM base
rpm ftp://$SITE_APT1 SuSE/$SUSE_VERSION-$SYSTEM update
rpm ftp://$SITE_APT1 SuSE/$SUSE_VERSION-$SYSTEM security

rpm ftp://$SITE_APT2 SuSE/$SUSE_VERSION-$SYSTEM base
rpm ftp://$SITE_APT2 SuSE/$SUSE_VERSION-$SYSTEM update
rpm ftp://$SITE_APT2 SuSE/$SUSE_VERSION-$SYSTEM security

# Non official update for wine drivers provided by SuSE employee
rpm ftp://$SITE_APT1 SuSE/$SUSE_VERSION-$SYSTEM wine

# Update for mozilla provided by SuSE but not OFFICIALY SUPPORTED !!!
# However this component is safe as mozilla update should not break
# clean system !
rpm ftp://$SITE_APT1 SuSE/$SUSE_VERSION-$SYSTEM mozilla

# The GPG keys of the the packman, suser-*, funktronic, components
rpm ftp://$SITE_APT2 SuSE/$SUSE_VERSION-$SYSTEM rpmkeys

# packman provides multimedia packages for SuSE such as MPlayer or Xine.
# Visit http://packman.links2linux.org/ for a list availabe rpms.
# These packages are safe.
rpm ftp://$SITE_APT2 SuSE/$SUSE_VERSION-$SYSTEM packman

# Xmltv and freevo for i386
rpm ftp://$SITE_APT2 SuSE/$SUSE_VERSION-$SYSTEM funktronics

# The SuSE users suser-* components generaly provides extra packages 
# that are not on the SuSE DVD or CDs.
# These packages are safe as they don't update base system packages.

# Provides update for apt and synaptic
rpm ftp://$SITE_APT2 SuSE/$SUSE_VERSION-$SYSTEM suser-rbos

# Many Sound related softwares, see http://www.jacklab.net/index.php?lang=en_EN
rpm ftp://$SITE_APT2 SuSE/$SUSE_VERSION-$SYSTEM suser-oc2pus
rpm ftp://$SITE_APT2 SuSE/$SUSE_VERSION-$SYSTEM suser-tux

# Some multimedia, games and emulators packages
rpm ftp://$SITE_APT2 SuSE/$SUSE_VERSION-$SYSTEM suser-scorot

# Latest XFCE4 packages
rpm ftp://$SITE_APT2 SuSE/$SUSE_VERSION-$SYSTEM suser-ollakka

# Various extra rpms with multimedia packages
rpm ftp://$SITE_APT2 SuSE/$SUSE_VERSION-$SYSTEM suser-tcousin
rpm ftp://$SITE_APT2 SuSE/$SUSE_VERSION-$SYSTEM suser-guru
rpm ftp://$SITE_APT2 SuSE/$SUSE_VERSION-$SYSTEM suser-jogley
rpm ftp://$SITE_APT2 SuSE/$SUSE_VERSION-$SYSTEM suser-gbv
rpm ftp://$SITE_APT2 SuSE/$SUSE_VERSION-$SYSTEM suser-jengelh
rpm ftp://$SITE_APT2 SuSE/$SUSE_VERSION-$SYSTEM suser-scrute

EOF

# sources.list for x86_64 as the components are not the same as i386
else if [ "$SYSTEM" = "x86_64" ]; then
cat > /etc/apt/sources.list << EOF
# sources.list file created by install_apt4suse  script.
# This file gives you a descent sources.list with selected components
# wich should not break your system.

# The list with all available components can be found at:
# http://linux01.gwdg.de/apt4rpm
# Some components provide experimental software, SELECT WISELY !!!
# http://$SITE_APT2/SuSE/$SUSE_VESRION-$SYSTEM/examples/sources.list.FTP


# base, update and security components provide official SuSE updates
rpm ftp://$SITE_APT1 SuSE/$SUSE_VERSION-$SYSTEM base
rpm ftp://$SITE_APT1 SuSE/$SUSE_VERSION-$SYSTEM update
rpm ftp://$SITE_APT1 SuSE/$SUSE_VERSION-$SYSTEM security

rpm ftp://$SITE_APT2 SuSE/$SUSE_VERSION-$SYSTEM base
rpm ftp://$SITE_APT2 SuSE/$SUSE_VERSION-$SYSTEM update
rpm ftp://$SITE_APT2 SuSE/$SUSE_VERSION-$SYSTEM security


# Non official update for wine drivers provided by SuSE employee
rpm ftp://$SITE_APT1 SuSE/$SUSE_VERSION-$SYSTEM wine

# Update for mozilla provided by SuSE but not OFFICIALY SUPPORTED !!!
# However this component is safe as mozilla update should not break
# clean system !
rpm ftp://$SITE_APT1 SuSE/$SUSE_VERSION-$SYSTEM mozilla

# The GPG keys of the the packman, suser-*, funktronic, components
rpm ftp://$SITE_APT2 SuSE/$SUSE_VERSION-$SYSTEM rpmkeys

# packman provides multimedia packages for SuSE such as MPlayer or Xine.
# Visit http://packman.links2linux.org/ for a list availabe rpms.
# These packages are safe.
rpm ftp://$SITE_APT2 SuSE/$SUSE_VERSION-$SYSTEM packman


# The SuSE users suser-* components generaly provides extra packages 
# that are not on the SuSE DVD or CDs.
# These packages are safe as they don't update base system packages.

# Some multimedia packages, games, emulators,
# and apt packages
rpm ftp://$SITE_APT2 SuSE/$SUSE_VERSION-$SYSTEM suser-scorot
rpm ftp://$SITE_APT2 SuSE/$SUSE_VERSION-$SYSTEM suser-jmorris
EOF
fi
fi

# Now download and install rpmkey
apt --yes --sources sources.list update
echo "Downloading rpmkey files..."
apt --yes --no-checksig --no-post install rpmkey*
echo "GPG key files installed."
echo ""
echo "apt is now ready to use."
echo "See http://linux01.gwdg.de/apt4rpm/ for more informations."
echo ""

exit 0

this script should automate things a bit. copy/paste/save and run it as root.
 
Old 07-04-2005, 04:37 PM   #5
riba43
Member
 
Registered: Feb 2005
Location: Slovenia
Distribution: suse11.0
Posts: 749

Original Poster
Rep: Reputation: 31
Question

Hi rshaw,

Thank you for being patient with me, but being completely new to linux, I have to be sure if I did it all right. I copied your script to terminal window and as root I started it. Is there still something I have to do? Because, see, when I started the command "apt update" nothing happened.??

regards
 
Old 07-04-2005, 06:43 PM   #6
John_Emad
Member
 
Registered: Dec 2004
Posts: 196

Rep: Reputation: 30
rshaw,

would you explain to me a little more what should be done with that script you wrote ??

thanx in advance
 
Old 07-04-2005, 06:52 PM   #7
John_Emad
Member
 
Registered: Dec 2004
Posts: 196

Rep: Reputation: 30
I pasted everything you wrote in that script but i got an error

arch is no supported by apt for suse

when I pasted

cho "Will setup apt for SuSE $SUSE_VERSION on $SYSTEM..."
echo ""
echo "Downloading apt and apt-libs packages..."
if [ "$SYSTEM" = "i386" ]; then
wget $WGET_OPT ftp://$SITE_APT1/SuSE/$SUSE_VERSION-$SYSTEM/RPMS.suser-rbos/apt-0.*
wget $WGET_OPT ftp://$SITE_APT1/SuSE/$SUSE_VERSION-$SYSTEM/RPMS.suser-rbos/apt-libs-0.*
else if [ "$SYSTEM" = "x86_64" ]; then
wget $WGET_OPT ftp://$SITE_APT1/$SUSE_VERSION-$SYSTEM/RPMS.suser-jmorris/apt-0.*
wget $WGET_OPT ftp://$SITE_APT1/$SUSE_VERSION-$SYSTEM/RPMS.suser-jmorris/apt-libs-0.*
fi
echo "$SYSTEM arch is no supported by apt for suse"
fi
echo "done"

so what does this error mean ?
 
Old 07-05-2005, 12:23 AM   #8
rshaw
Senior Member
 
Registered: Apr 2001
Location: Perry, Iowa
Distribution: Mepis , Debian
Posts: 2,694

Rep: Reputation: 45
i didn't write it, it's Sebastien Corots' work. it seems that the " echo $SYSTEM arch is no supported by apt for suse" line should be the final 'else' in the if, else if, else clause. you could just remove or comment out that line.

or just install apt and apt-libs manually and update the sources list with the list found at linux01.gwdg.de/apt4rpm
 
Old 07-05-2005, 04:58 AM   #9
John_Emad
Member
 
Registered: Dec 2004
Posts: 196

Rep: Reputation: 30
linux01.gwdg.de/apt4rpm

link not working ?? !!
 
Old 07-05-2005, 08:30 AM   #10
rshaw
Senior Member
 
Registered: Apr 2001
Location: Perry, Iowa
Distribution: Mepis , Debian
Posts: 2,694

Rep: Reputation: 45
http://linux01.gwdg.de/apt4rpm/index.orig.html
 
Old 07-05-2005, 03:46 PM   #11
John_Emad
Member
 
Registered: Dec 2004
Posts: 196

Rep: Reputation: 30
thanx alot

I will give it a try
 
Old 07-06-2005, 04:07 AM   #12
John_Emad
Member
 
Registered: Dec 2004
Posts: 196

Rep: Reputation: 30
it worked greatly for me, thx alot
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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



All times are GMT -5. The time now is 03:40 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration