You are not logged in.

#51 2010-12-27 06:20:10

Xyne
Forum Fellow
Registered: 2008-08-03
Posts: 6,965
Website

Re: powerpill_portable.sh does not work in FreeBSD box

mfaridi wrote:

if I do not have internet connection at home , how I can upgrade perl-xyne-arch ,?
how I can upgrade it in home ?
what I must do , when I download last version of perl-xyne-arch in work with wget or something like wget and move it to home and upgrade last version to new one ?


You have "perl-xyne-arch" installed at home, so when you run "pp -Syu" at work, it should download the latest version of the package.  When you go home and run the sync script and pacman, the package will be updated. That is the entire point of powerpill portable. It makes it possible for you to upgrade packages at home. You said that you

Why would you use wget? Your question makes me think that you have not understood what we are doing.

  • At home you run powerpill_portable.sh.

  • If you still have the old version of perl-xyne-arch then you must run the "sed" command.

  • You take the portable directory to work.

  • You run "pp -Syu" to download upgradable packages. (If you want to install other packages, you run "pp -Syu pkgname1 pkgname2..." instead.)

  • You take the portable directory home.

  • You run "sync" to copy the downloaded packages to the pacman cache on your home computer, and to update the home computer sync database.

  • You run "pacman -Su" to install the packages (or you run "pacman -Su pkgname1 pkgname2..." if you downloaded other packages).

  • You delete the packages from portable/pkg if you don't need them.

  • You run "powerpill_portable.sh /path/to/portable" to update the portable directory with the new local database.

  • You take the portable directory back to work to download new packages again.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#52 2010-12-27 06:27:46

mfaridi
Member
Registered: 2010-12-15
Posts: 192

Re: powerpill_portable.sh does not work in FreeBSD box

Xyne wrote:
mfaridi wrote:

if I do not have internet connection at home , how I can upgrade perl-xyne-arch ,?
how I can upgrade it in home ?
what I must do , when I download last version of perl-xyne-arch in work with wget or something like wget and move it to home and upgrade last version to new one ?


You have "perl-xyne-arch" installed at home, so when you run "pp -Syu" at work, it should download the latest version of the package.  When you go home and run the sync script and pacman, the package will be updated. That is the entire point of powerpill portable. It makes it possible for you to upgrade packages at home. You said that you

Why would you use wget? Your question makes me think that you have not understood what we are doing.

  • At home you run powerpill_portable.sh.

  • If you still have the old version of perl-xyne-arch then you must run the "sed" command.

  • You take the portable directory to work.

  • You run "pp -Syu" to download upgradable packages. (If you want to install other packages, you run "pp -Syu pkgname1 pkgname2..." instead.)

  • You take the portable directory home.

  • You run "sync" to copy the downloaded packages to the pacman cache on your home computer, and to update the home computer sync database.

  • You run "pacman -Su" to install the packages (or you run "pacman -Su pkgname1 pkgname2..." if you downloaded other packages).

  • You delete the packages from portable/pkg if you don't need them.

  • You run "powerpill_portable.sh /path/to/portable" to update the portable directory with the new local database.

  • You take the portable directory back to work to download new packages again.

thanks ,
I understand completely what you said , your guide about how I use your script is very clear and I understand all stages  and I understand what I must do , but I am afraid if I see error to run you script , that script  does not work good and make problem for my system
I think I must first upgrade perl-xyne-arch and then run you script and home to make portable directory and then in work I run pp -Syu
I think if I see error for tun pp -Syu because of perl-xyne-arch , it does not work good and does not get all packages I need
only I think because of that error , your script does not work good and make my system unstable

Offline

#53 2010-12-27 13:03:13

Xyne
Forum Fellow
Registered: 2008-08-03
Posts: 6,965
Website

Re: powerpill_portable.sh does not work in FreeBSD box

mfaridi wrote:

I think I must first upgrade perl-xyne-arch and then run you script and home to make portable directory and then in work I run pp -Syu
I think if I see error for tun pp -Syu because of perl-xyne-arch , it does not work good and does not get all packages I need
only I think because of that error , your script does not work good and make my system unstable

I thought that you had already run the script at home to create the portable directory, and that you had run "pp" at work to download packages. Have I misunderstood?
How did you create the portable directory that you are using now?



If you do not have powerpill installed at home then you have two options. The first option is to install powerpill with the method that you were using before powerpill portable. The second option is to run "powerpill_portable.sh" at home, then bring the portable directory to work. At work you can download the packages for powerpill, perl-xyne-arch, and perl-xyne-common manually, and move the required files to the portable directory. In perl-xyne-arch and perl-xyne-common you will find directories named "Xyne". Move these to the portable directory. In powerpill you will find the script named powerpill. Move this to the portable directory too: (portable/powerpill, portable/Xyne/...). Then run "pp -Syu powerpill", take the portable directory home, and run "sync", then "pacman -Su powerpill", then "powerpill_portable.sh /path/to/portable".


If you have powerpill installed at home but with the older version of perl-xyne-arch then you just need to run the "sed" command. I thought that you had already done this, because you said that "pp" had downloaded packages. "pp" would not work if you had not run the "sed" command. The error does not affect the "sync" script. If you have downloaded the packages at work with pp then you just need to run the sync script and then pacman. pp should only be run at work. It doesn't do anything at home.

If neither of those work then you will have to explain to me very clearly what you have done so far, because I do not know.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#54 2010-12-27 13:29:11

mfaridi
Member
Registered: 2010-12-15
Posts: 192

Re: powerpill_portable.sh does not work in FreeBSD box

thanks
you script work good and like charm , I download all packages at work move them to home and run "rsync" and after that I run

 "pacman -Su 

and 54 packages upgraded with this method , and perl-xyne-arch upgrade to new one and have new of it right now and after that I run

 powerpill_portable.sh 

  and then move portable directory to work and run this command

 ./pp -Syu 

and script start work without problem and does not need sed command for start and statr download new thing for upgrade my Arch
your script  is great and very usefull , I wish we have this script for Fedora and openSuse and Ubuntu too for make offline upgrade of packages are installed by system

Last edited by mfaridi (2010-12-27 13:32:28)

Offline

#55 2010-12-27 13:44:05

Xyne
Forum Fellow
Registered: 2008-08-03
Posts: 6,965
Website

Re: powerpill_portable.sh does not work in FreeBSD box

Thanks. I'm glad it works big_smile

EDIT: Please edit your first post and add "[SOLVED]" to the subject.

Last edited by Xyne (2010-12-27 13:48:11)


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#56 2011-02-09 06:40:38

mfaridi
Member
Registered: 2010-12-15
Posts: 192

Re: powerpill_portable.sh does not work in FreeBSD box

Hi guys ,
today my Ubuntu system is crash and I lose it and after crash  ubuntu , I install Debian 6 Squessz, this version of Debian is AMD 64 and I run powerpill portable on it and I see these error and it does not work  good and when I run this command in portable directory ,

 sh pp -Syu 

I see these error

an't locate LWP/Simple.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at Xyne/Common/RemoteFile.pm line 22.
BEGIN failed--compilation aborted at Xyne/Common/RemoteFile.pm line 22.
Compilation failed in require at Xyne/Arch/Pacman.pm line 26.
BEGIN failed--compilation aborted at Xyne/Arch/Pacman.pm line 26.
Compilation failed in require at Xyne/Arch/Powerpill.pm line 26.
BEGIN failed--compilation aborted at Xyne/Arch/Powerpill.pm line 26.
Compilation failed in require at ./powerpill line 25.
BEGIN failed--compilation aborted at ./powerpill line 25.

how I must do this great script work on Debian system too like Ubuntu ,

Last edited by mfaridi (2011-02-09 07:58:12)

Offline

Board footer

Powered by FluxBB