Install local packages using Equo

Anything that pertains to Entropy, Equo or Sulfur

Moderator: Moderators

Install local packages using Equo

Postby nachoig » Mon Dec 24, 2012 0:38

Is this possible? The idea is:
1. Build a binary package using Portage and save it on my computer.
2. Install this package using equo or Rigo. Something like pacman -U or dpkg -i.
nachoig
Simple Hen
 
Posts: 68
Joined: Thu Oct 04, 2012 20:19

Re: Install local packages using Equo

Postby sabayonino » Mon Dec 24, 2012 1:48

User avatar
sabayonino
Sagely Hen
 
Posts: 1574
Joined: Sun Sep 21, 2008 1:12
Location: Italy

Re: Install local packages using Equo

Postby nachoig » Mon Dec 24, 2012 3:35

You didnt't understand my question. My objective is not to create a repository. I would like to do something like this:

Two examples.

1. Official Sabayon's repositories doesn't have the latest Opera's version and I want it. Then, I go to download opera in official's Opera page. Yes, they have a package for Sabayon, look
http://www.opera.com/browser/download/

But, how can I install it? In Debian and Ubuntu, I download the .deb package from Opera's website and install with dpkg-i /home/user/Downloads/opera.deb, without using any repos. In RPM distros, I can do this typing rpm -i /home/user/Downloads/opera.rpm

2. According to emerge's man page, I can create a binnary package using the option --buildpkg, or if I don't want to install this package, I can use --buildpkgonly. The description says:

Code: Select all
--buildpkg [ y | n ] (-b short option)
              Tells emerge to build binary packages for all ebuilds processed in addition to actually merging the packages.  Useful for maintainers or if you administrate mul‐
              tiple Gentoo Linux systems (build once, emerge tbz2s everywhere) as well as disaster recovery. The package will be created in the PKGDIR directory (see
              make.conf(5)).  An alternative for already-merged packages is to use quickpkg(1) which creates a tbz2 from the live filesystem.

    --buildpkgonly (-B)
              Creates binary packages for all ebuilds processed without actually merging the packages.  This comes with the caveat that all build-time dependencies must
              already be emerged on the system.



The idea is to get a package from Portage, create a binnary, and install using Equo.

In summary: all what I want is installing through Equo packages that are not present in the Sabayon's or any community repositories or without use these repos.
nachoig
Simple Hen
 
Posts: 68
Joined: Thu Oct 04, 2012 20:19

Re: Install local packages using Equo

Postby svantoviit » Mon Dec 24, 2012 10:10

Look at the entropy tools equo pkg and equo repo.
User avatar
svantoviit
Technological Hen
 
Posts: 395
Joined: Sun Feb 28, 2010 17:55
Location: Europe

Re: Install local packages using Equo

Postby sabayonino » Mon Dec 24, 2012 13:18

I Understood. but binary package for Gentoo is not compatible with entropy.

running "eit" you can build your own entropy package from portage (after compile the packages/s)

then you can install your own Entropy package locally or setting your local repository.

if you build a single (or a sets) packages you can install them locally but entropy database doesn't know what you've installed
see
Code: Select all
# equo pkg --help
User avatar
sabayonino
Sagely Hen
 
Posts: 1574
Joined: Sun Sep 21, 2008 1:12
Location: Italy

Re: Install local packages using Equo

Postby nachoig » Mon Dec 24, 2012 23:39

OK, if I understood correctly, it's possible. But it's not clearly yet how can I do this.

1. emerge --buildpkgonly foo
This builds the binnary package and save it on my computer, right?


2. equo pkg inflate /path/to/foo.tbz2
This converts the binnary package generated by Portage to an Entropy package and install it, right?
nachoig
Simple Hen
 
Posts: 68
Joined: Thu Oct 04, 2012 20:19

Re: Install local packages using Equo

Postby sabayonino » Tue Dec 25, 2012 0:57

nachoig wrote:OK, if I understood correctly, it's possible. But it's not clearly yet how can I do this.

1. emerge --buildpkgonly foo
This builds the binnary package and save it on my computer, right?


2. equo pkg inflate /path/to/foo.tbz2
This converts the binnary package generated by Portage to an Entropy package and install it, right?

don't need to build gentoo binary pkg. Just merge this. then run equo pkg to build this.


example :
Code: Select all
# emerge cfv

(this compile cfv and its dependemces)

then run equo pkg to build entropy package


Note :
Code: Select all
equo pkg inflate
usage: equo pkg inflate [-h] [--savedir <path>] [--ask] <file> [<file> ...]
equo pkg inflate: error: too few arguments


Code: Select all
# equo pkg inflate app-arch/cfv


unfortunately I can't paste this output 'couse entropy errors
User avatar
sabayonino
Sagely Hen
 
Posts: 1574
Joined: Sun Sep 21, 2008 1:12
Location: Italy

Re: Install local packages using Equo

Postby nachoig » Tue Dec 25, 2012 21:15

But I don't want to merge the packages. This type of operation has a serious problem: many dependencies will be merged together, including system components (like udev, kmod, Linux kernel, etc.)

Can I use emerge --nodeps foo in this case?
nachoig
Simple Hen
 
Posts: 68
Joined: Thu Oct 04, 2012 20:19

Re: Install local packages using Equo

Postby sabayonino » Tue Dec 25, 2012 21:33

nachoig wrote:But I don't want to merge the packages. This type of operation has a serious problem: many dependencies will be merged together, including system components (like udev, kmod, Linux kernel, etc.)

Can I use emerge --nodeps foo in this case?

You can try this.

Remember .. Sabayon is like Gentoo ...Do you know Gentoo ?? :roll:
User avatar
sabayonino
Sagely Hen
 
Posts: 1574
Joined: Sun Sep 21, 2008 1:12
Location: Italy

Re: Install local packages using Equo

Postby nachoig » Tue Dec 25, 2012 23:44

You are not alone. equo pkg inflate is broken.

Code: Select all
equo pkg inflate galculator


Code: Select all
>> Hi. My name is Bug Reporter. I am sorry to inform you that the program crashed. Well, you know, shit happens.
>> Mas há algo que você poderia fazer para ajudar a me tornar uma aplicação melhor.
>> -- BUT, DO NOT SUBMIT THE SAME REPORT MORE THAN ONCE --
>> Agora estou mostrando o que acontece. Não entre em pânico, estou aqui para ajudá-lo.
Traceback (most recent call last):
  File "/usr/bin/equo", line 15, in <module>
    main()
  File "/usr/lib/entropy/client/solo/main.py", line 331, in main
    func, func_args = cmd_obj.parse()
  File "/usr/lib/entropy/client/solo/commands/pkg.py", line 165, in parse
    nsargs = parser.parse_args(self._args)
  File "/usr/lib64/python2.7/argparse.py", line 1688, in parse_args
    args, argv = self.parse_known_args(args, namespace)
  File "/usr/lib64/python2.7/argparse.py", line 1720, in parse_known_args
    namespace, args = self._parse_known_args(args, namespace)
  File "/usr/lib64/python2.7/argparse.py", line 1929, in _parse_known_args
    stop_index = consume_positionals(start_index)
  File "/usr/lib64/python2.7/argparse.py", line 1885, in consume_positionals
    take_action(action, args)
  File "/usr/lib64/python2.7/argparse.py", line 1794, in take_action
    action(self, namespace, argument_values, option_string)
  File "/usr/lib64/python2.7/argparse.py", line 1090, in __call__
    namespace, arg_strings = parser.parse_known_args(arg_strings, namespace)
  File "/usr/lib64/python2.7/argparse.py", line 1720, in parse_known_args
    namespace, args = self._parse_known_args(args, namespace)
  File "/usr/lib64/python2.7/argparse.py", line 1929, in _parse_known_args
    stop_index = consume_positionals(start_index)
  File "/usr/lib64/python2.7/argparse.py", line 1885, in consume_positionals
    take_action(action, args)
  File "/usr/lib64/python2.7/argparse.py", line 1778, in take_action
    argument_values = self._get_values(action, argument_strings)
  File "/usr/lib64/python2.7/argparse.py", line 2218, in _get_values
    value = [self._get_value(action, v) for v in arg_strings]
  File "/usr/lib64/python2.7/argparse.py", line 2238, in _get_value
    msg = str(_sys.exc_info()[1])
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe1' in position 19: ordinal not in range(128)

Frame _get_value in /usr/lib64/python2.7/argparse.py at line 2238
                      action = _StoreAction(option_strings=[], dest='files', nargs='+', const=None, default=None, type=<function _argparse_easygoing_valid_entropy_path at 0x1f4fc08>, choices=None, help=u'Caminho do pacote SPM.', metavar='<file>')
                        self = ArgumentParser(prog='equo pkg inflate', usage=None, description=None, version=None, formatter_class=<class 'argparse.HelpFormatter'>, conflict_handler='error', add_help=True)
                   type_func = <function _argparse_easygoing_valid_entropy_path at 0x1f4fc08>
                        name = '_argparse_easygoing_valid_entropy_path'
                  arg_string = u'galculator'
>>
Erm... Can I send the error, along with some other information
about your hardware to my creators so they can fix me? (Your IP will be logged)



I'll open a bug report.

Edit: here it is
https://bugs.sabayon.org/show_bug.cgi?id=3873
nachoig
Simple Hen
 
Posts: 68
Joined: Thu Oct 04, 2012 20:19


Return to Entropy|Equo|Rigo Package Managers

Who is online

Users browsing this forum: No registered users and 2 guests