You are not logged in.
i tried following this link to save yaourt packages to a local folder, but i get an error
[root@myhost yaourt]# yaourt -Syu --devel --aur
/etc/yaourtrc: line 49: ExportToLocalRepository: command not found
comments at this page with similar errors doesnt offer any solution.
what am i missing here?
Last edited by hadrons123 (2011-11-19 17:07:15)
LENOVO Y 580 IVYBRIDGE 660M NVIDIA
Unix is user-friendly. It just isn't promiscuous about which users it's friendly with. - Steven King
Offline
Offline
I'm not sure if the wiki is up to date on this. Have you tried editing
# Build
#EXPORT=0 # Export builded package
#EXPORTSRC=0 # Need EXPORT=1 to be used
#EXPORTDIR="" # If empty, use makepkg's connfiguration (see makepkg.conf)
in your /etc/yaourtrc?
Last edited by karol (2011-11-19 15:43:38)
Offline
1.first thing i just added the line
ExportToLocalRepository /var/cache/pacman/pkg-local
to the bottom of the yaourtrc file as per the wiki and ended up with the error.
/etc/yaourtrc: line 49: ExportToLocalRepository: command not found
2.after falconindy's idea i added #
#ExportToLocalRepository /var/cache/pacman/pkg-local
but now i dont see the error but then package is not getting saved in the pkg-local folder.
3.karol i tried your step,but still the packages are not saved in the pkg-local folder.
this is yaourtrc file after the edits but still packages are not saved....
# yaourtrc - Configuration for yaourt
#
# See yaourtrc(5) for more information
#
#
# ABS_REPO list repositories available on archlinux rsync server
ABS_REPO=(testing core extra community-testing community gnome-unstable kde-unstable)
# General
#AUTOSAVEBACKUPFILE=0
#DEVELBUILDDIR="/var/abs/local/yaourtbuild"
#DEVEL=0
#EDITOR="$EDITOR"
#FORCEENGLISH=0
#FORCE=0
#TMPDIR="/tmp"
#SUDONOVERIF=0 # Avoid multiple sudo checks when timestamp_timeout=0
# AUR
#AURCOMMENT=5
#AURDEVELONLY=0
#AURSEARCH=1
#AURUPGRADE=0
#AURVOTE=1
# Build
#EXPORT=0 # Export builded package
#EXPORTSRC=0 # Need EXPORT=1 to be used
#EXPORTDIR="" # If empty, use makepkg's connfiguration (see makepkg.conf)
#EXPORT=0 # Export to 1: EXPORTDIR or PKGDEST
# 2: pacman cache (as root)
#EXPORTSRC=0 # Need EXPORT>0 to be used
#EXPORTDIR="" # If empty, use makepkg's connfiguration (see makepkg.conf)
# Prompt
#NOCONFIRM=0
#UP_NOCONFIRM=0 # No prompt while build upgrades (including -Sbu)
#BUILD_NOCONFIRM=0 # Only prompt for editing files
#EDITFILES=1
#NOENTER=1
# Output
#USECOLOR=1
#DETAILUPGRADE=1
#SHOWORPHANS=1
#TERMINALTITLE=1
# Command
#PACMAN="pacman"
#DIFFEDITCMD="vimdiff"
#ExportToLocalRepository /var/cache/pacman/pkg-local
.
thanks for the replies though!
LENOVO Y 580 IVYBRIDGE 660M NVIDIA
Unix is user-friendly. It just isn't promiscuous about which users it's friendly with. - Steven King
Offline
Errr, you need to remove the '#' from the beginning of the line :-)
Offline
oh .. oh ... again the same error
/etc/yaourtrc: line 53: ExportToLocalRepository: command not found
checking dependencies....
LENOVO Y 580 IVYBRIDGE 660M NVIDIA
Unix is user-friendly. It just isn't promiscuous about which users it's friendly with. - Steven King
Offline
oh .. oh ... again the same error
/etc/yaourtrc: line 53: ExportToLocalRepository: command not found checking dependencies....
You've removed the comment from the last line and I wanted you to enable the EXPORTDIR etc., like so
EXPORTDIR="/var/cache/pacman/pkg-local" # If empty, use makepkg's connfiguration (see makepkg.conf)
Offline
not sure if i did that right,but still not saving in the pkg-local folder , and still getting the same error as my first post.
edited yaourtrc file
# yaourtrc - Configuration for yaourt
#
# See yaourtrc(5) for more information
#
#
# ABS_REPO list repositories available on archlinux rsync server
ABS_REPO=(testing core extra community-testing community gnome-unstable kde-unstable)
# General
#AUTOSAVEBACKUPFILE=0
#DEVELBUILDDIR="/var/abs/local/yaourtbuild"
#DEVEL=0
#EDITOR="$EDITOR"
#FORCEENGLISH=0
#FORCE=0
#TMPDIR="/tmp"
#SUDONOVERIF=0 # Avoid multiple sudo checks when timestamp_timeout=0
# AUR
#AURCOMMENT=5
#AURDEVELONLY=0
#AURSEARCH=1
#AURUPGRADE=0
#AURVOTE=1
# Build
#EXPORT=0 # Export builded package
#EXPORTSRC=0 # Need EXPORT=1 to be used
#EXPORTDIR="/var/cache/pacman/pkg-local" # If empty, use makepkg's connfiguration (see makepkg.conf)
#EXPORT=0 # Export to 1: EXPORTDIR or PKGDEST
# 2: pacman cache (as root)
#EXPORTSRC=0 # Need EXPORT>0 to be used
#EXPORTDIR="/var/cache/pacman/pkg-local" # If empty, use makepkg's connfiguration (see makepkg.conf)
# Prompt
#NOCONFIRM=0
#UP_NOCONFIRM=0 # No prompt while build upgrades (including -Sbu)
#BUILD_NOCONFIRM=0 # Only prompt for editing files
#EDITFILES=1
#NOENTER=1
# Output
#USECOLOR=1
#DETAILUPGRADE=1
#SHOWORPHANS=1
#TERMINALTITLE=1
# Command
#PACMAN="pacman"
#DIFFEDITCMD="vimdiff"
ExportToLocalRepository /var/cache/pacman/pkg-local
Last edited by hadrons123 (2011-11-19 16:49:46)
LENOVO Y 580 IVYBRIDGE 660M NVIDIA
Unix is user-friendly. It just isn't promiscuous about which users it's friendly with. - Steven King
Offline
Do you know what source code comments are? They are meant for you to read, not for the program to execute. '#' is used to mark a line as a comment.
If you want the program to run something, you need to uncomment the lines that you want to be run, like so
EXPORTDIR="/var/cache/pacman/pkg-local"
and comment out the ones you want to "hide" from the program:
#ExportToLocalRepository /var/cache/pacman/pkg-local
Offline
that's what i thought first
'#' is used to mark a line as a comment.
and i knew already that I need to uncomment the lines to execute the function.i didnt know bash scripting so i got it all wrong,thinking it was all different in bash.
Not a software pro either.so...
now uncommented the EXPORTDIR and now files are saved to the pkg-local folder.
thanks karol.
Last edited by hadrons123 (2011-11-19 17:08:19)
LENOVO Y 580 IVYBRIDGE 660M NVIDIA
Unix is user-friendly. It just isn't promiscuous about which users it's friendly with. - Steven King
Offline