You are not logged in.

#1 2011-11-19 15:11:18

hadrons123
Member
From: chennai
Registered: 2011-10-07
Posts: 1,249

[solved]yaourt local database save - command not found

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

#2 2011-11-19 15:17:38

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: [solved]yaourt local database save - command not found

Why not look at line 49 of /etc/yaourtrc? Keep in mind this file is sourced by Bash:

# This is a variable declaration
foo=bar

# This runs a program with 2 arguments
foo = bar

Offline

#3 2011-11-19 15:42:59

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [solved]yaourt local database save - command not found

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

#4 2011-11-19 16:24:06

hadrons123
Member
From: chennai
Registered: 2011-10-07
Posts: 1,249

Re: [solved]yaourt local database save - command not found

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

#5 2011-11-19 16:26:44

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [solved]yaourt local database save - command not found

Errr, you need to remove the '#' from the beginning of the line :-)

Offline

#6 2011-11-19 16:29:14

hadrons123
Member
From: chennai
Registered: 2011-10-07
Posts: 1,249

Re: [solved]yaourt local database save - command not found

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

#7 2011-11-19 16:32:57

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [solved]yaourt local database save - command not found

hadrons123 wrote:

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

#8 2011-11-19 16:49:06

hadrons123
Member
From: chennai
Registered: 2011-10-07
Posts: 1,249

Re: [solved]yaourt local database save - command not found

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

#9 2011-11-19 16:56:12

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [solved]yaourt local database save - command not found

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

#10 2011-11-19 17:06:39

hadrons123
Member
From: chennai
Registered: 2011-10-07
Posts: 1,249

Re: [solved]yaourt local database save - command not found

that's what i thought first

karol wrote:

'#' 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

Board footer

Powered by FluxBB